WEB开发网
开发学院手机开发Android 开发 Android 中 Log 机制详解 阅读

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"

上一页  1 2 

Tags:Android Log 机制

编辑录入:coldstar [复制链接] [打 印]
赞助商链接