设为首页 加入收藏

TOP

关于Android调试过程的LOG
2014-11-24 12:02:44 来源: 作者: 【 】 浏览:0
Tags:关于 Android 调试 过程 LOG

命令是logcat,参数参照下面的:


static void show_help(const char *cmd)
{
fprintf(stderr,"Usage: %s [options] [filterspecs]/n", cmd);


fprintf(stderr, "options include:/n"
" -s Set default filter to silent./n"
" Like specifying filterspec '*:s'/n"
" -f Log to file. Default to stdout/n"
" -r [] Rotate log every kbytes. (16 if unspecified). Requires -f/n"
" -n Sets max number of rotated logs to , default 4/n"
" -v Sets the log print format, where is one of:/n/n"
" brief process tag thread raw time threadtime long/n/n"
" -c clear (flush) the entire log and exit/n"
" -d dump the log and then exit (don't block)/n"
" -g get the size of the log's ring buffer and exit/n"
" -b request alternate ring buffer/n"
" ('main' (default), 'radio', 'events')/n"
" -B output the log in binary");



fprintf(stderr,"/nfilterspecs are a series of /n"
" [:priority]/n/n"
"where is a log component tag (or * for all) and priority is:/n"
" V Verbose/n"
" D Debug/n"
" I Info/n"
" W Warn/n"
" E Error/n"
" F Fatal/n"
" S Silent (supress all output)/n"
"/n'*' means '*:d' and by itself means :v/n"
"/nIf not specified on the commandline, filterspec is set from ANDROID_LOG_TAGS./n"
"If no filterspec is found, filter defaults to '*:I'/n"
"/nIf not specified with -v, format is set from ANDROID_PRINTF_LOG/n"
"or defaults to /"brief/"/n/n");


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Android的传感器HAL层的书写---基.. 下一篇U-Boot中的boards.cfg文件

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Libevent C++ 高并发 (2025-12-26 00:49:30)
·C++ dll 设计接口时 (2025-12-26 00:49:28)
·透彻理解 C 语言指针 (2025-12-26 00:22:52)
·C语言指针详解 (经典 (2025-12-26 00:22:49)
·C 指针 | 菜鸟教程 (2025-12-26 00:22:46)