Android开发技术:logcat使用大全
2012-12-21 17:17
302 查看
1.logcat -c
清除已有log信息
2.logcat -b main
显示主缓冲区的log
logcat -b radio
显示无线缓冲区的log
logcat -b events
显示事件缓冲区的log
3.logcat -f [filename]
将log保存到指定的文件中,例如 logcat -b radio -f /data/radio.log
4.logcat -v
设置logcat输出的格式
主要有7种:
1. brief — Display priority/tag and PID of originating process (the default format).
2. process — Display PID only.
3. tag — Display the priority/tag only.
4. thread — Display process:thread and priority/tag only.
5. raw — Display the raw log message, with no other metadata fields.
6. time — Display the date, invocation time, priority/tag, and PID of the originating process.
7. long — Display all metadata fields and separate messages with a blank lines.
比较常用的是显示时间:logcat -v time &
5.logcat -g
查看缓冲区的大小
logcat -g main
logcat -g radio
logcat -g events
清除已有log信息
2.logcat -b main
显示主缓冲区的log
logcat -b radio
显示无线缓冲区的log
logcat -b events
显示事件缓冲区的log
3.logcat -f [filename]
将log保存到指定的文件中,例如 logcat -b radio -f /data/radio.log
4.logcat -v
设置logcat输出的格式
主要有7种:
1. brief — Display priority/tag and PID of originating process (the default format).
2. process — Display PID only.
3. tag — Display the priority/tag only.
4. thread — Display process:thread and priority/tag only.
5. raw — Display the raw log message, with no other metadata fields.
6. time — Display the date, invocation time, priority/tag, and PID of the originating process.
7. long — Display all metadata fields and separate messages with a blank lines.
比较常用的是显示时间:logcat -v time &
5.logcat -g
查看缓冲区的大小
logcat -g main
logcat -g radio
logcat -g events
相关文章推荐
- Android应用开发学习—Toast使用方法大全
- android 基础开发(一)logcat的使用
- Android开发中的logcat工具使用
- Android开发中的logcat工具使用
- Android开发人员使用的技术——Ecipse安装GenyMotion插件教程
- Android应用开发学习—Toast使用方法大全
- Android开发 使用 adb logcat 显示 Android 日志
- Android应用开发学习—Toast使用方法大全
- 解决Eclipse进行Android开发时logcat不显示问题-使用DDMS
- 11、Android开发基础之Logcat的使用
- Android开发中的logcat工具使用
- Android 开发中 LogCat 工具的使用
- Android开发中的logcat工具使用
- [置顶] Android开发实战使用(VR技术实现360°全景视频播放功能)
- 解决Eclipse进行Android开发时logcat不显示问题-使用DDMS
- Android开发常用调试技术大全
- Android开发:使用Intent打开电话、短信、邮箱、本地文件等系统应用程序整理大全
- Android开发笔记之:一分钟学会使用Logcat调试程序的详解
- 解决Eclipse进行Android开发时logcat不显示问题-使用DDMS
- Android开发使用LogCat,LogCat常见问题