Android 中 Log 机制详解
2010-04-20 05:11:00 来源:WEB开发网核心提示:-c clear (flush) the entire log and exit-d dump the log and then exit (don't block)-g get the size of the log's ring buffer and exit-b < buffer >
-c clear (flush) the entire log and exit
-d dump the log and then exit (don't block)
-g get the size of the log's ring buffer and exit
-b < buffer > request alternate ring buffer, defaults to 'main'
filterspecs are a series of < tag >[:priority]
Where < tag > is a log component tag (or * for all) and priority is:
V Verbose
D Debug
I Info
W Warn
E Error
F Fatal
S Silent (supress all output)
'*' means '*:d' and < tag > by itself means < tag >:v
If not specified on the commandline, filterspec is set from ANDROID_LOG_TAG
If no filterspec is found, filter defaults to '*:I'
If not specified with -v, format is set from ANDROID_PRINTF_LOG or defaults to "brief"
更多精彩
赞助商链接