adb logcat的使用

本文详细介绍了logcat命令的使用方法,包括其基本用法、选项、过滤规则及常见参数,帮助开发者有效地管理和分析应用日志。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在不会使用某个工具时,要记得 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"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值