命令是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
" -r [
" -n
" -v
" 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
" ('main' (default), 'radio', 'events')/n"
" -B output the log in binary");
fprintf(stderr,"/nfilterspecs are a series of /n"
"
"where
" 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
"/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");