博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android log system
阅读量:4320 次
发布时间:2019-06-06

本文共 1095 字,大约阅读时间需要 3 分钟。

There are basically three logs on the system:

Log:

  • for short, textual data
  • in-memory ringbuffer, fast
  • ephemeral (you'll lose it on a crash, or the ringbuffer scrolls)
  • intended for app developers

EventLog is:

  • for short, binary data
  • in-memory ringbuffer, fast
  • ephemeral (you'll lose it on a crash, or the ringbuffer scrolls)
  • intended for platform developers to collect statistics

DropBox:

  • for long text or binary data
  • persistent, written to disk
  • kinda slow (disk)
  • meant for platform developers too, mostly to collect crashes & large statistics
  • subject to limits, deleted by tag if a tag's count and/or size get too large

DropBox is what we used during development to capture all the StrictMode violations in Gingerbread.

You can use DropBox for one-off debugging, but it's not really recommended. It's definitely not recommended as a way to share data between apps. It's not reliable enough, and you can't put permissions on the data. You should just use a shared userid and use the normal filesystem with appropriate permissions.

转载于:https://www.cnblogs.com/frydsh/archive/2012/10/27/2742679.html

你可能感兴趣的文章
解密zend-PHP凤凰源码程序
查看>>
python3 序列分片记录
查看>>
Atitit.git的存储结构and 追踪
查看>>
atitit 读书与获取知识资料的attilax的总结.docx
查看>>
B站 React教程笔记day2(3)React-Redux
查看>>
找了一个api管理工具
查看>>
Part 2 - Fundamentals(4-10)
查看>>
使用Postmark测试后端存储性能
查看>>
NSTextView 文字链接的定制化
查看>>
第五天站立会议内容
查看>>
ATMEGA16 IOport相关汇总
查看>>
JAVA基础-多线程
查看>>
面试题5:字符串替换空格
查看>>
[Codevs] 线段树练习5
查看>>
Amazon
查看>>
component-based scene model
查看>>
Echart输出图形
查看>>
hMailServer搭建简单邮件系统
查看>>
从零开始学习jQuery
查看>>
Spring+SpringMVC+MyBatis深入学习及搭建(四)——MyBatis输入映射与输出映射
查看>>