在不会使用某个工具时,要记得 xxx --help/xxx -h/man xxxlogcat --helpUsage: logcat [options] [filterspecs]options include: -s Set default filter to silent. Like specifying filterspec '*:s' -f Log to file. Default to stdout //写到某个文件中 -r [] Rotate log every kbytes. (16 if unspecified).
Requires -f -n Sets max number of rotated logs to , default 4 -v Sets the log print format, where is one of: brief process tag thread raw time threadtime long -c clear (flush) the entire log and exit //清除之前的log -d dump the log and then exit (don't block) //打印log并退出,don't
block -t print only the most recent lines (implies -d) //打印最近几行的log -g get the size of the log's ring buffer and exit -b Request alternate ring buffer, 'main', 'system', 'radio' or 'events'. Multiple -b parameters are allowed and the results are interleaved.
The default is -b main -b system. -B output the log in binaryfilterspecs are a series of [:priority]where 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
by itself means :vIf not specified on the commandline, filterspec is set from ANDROID_LOG_TAGS.If no filterspec is found, filter defaults to '*:I'If not specified with -v, format is set from ANDROID_PRINTF_LOGor defaults to "brief"
adb logcat的使用
最新推荐文章于 2025-07-06 12:41:35 发布