前言 Android 系统的日志分为两部分 底层的 Linux 内核日志输出到 /proc/kmsg Android 的日志输出到 /dev/log 语法格式 adb logcat [<option>] ... [<filter-spec>] ... 按优先级过滤日志 Android 的日志分为如下几个优先级 V -- Verbose(最低,输出得最多) D -- Debug I -- Info W -- Warning E -- Error F -- Fatal S -- Sil
要在cmd命令中直接使用adb,需要配置环境变量:目录XXX\sdk\platform-tools 查看adb -help 帮助命令打印出以下内容: Android Debug Bridge version 1.0.31 <!--安卓调试桥接器 版本号:1.0.31--> -a - directs adb to listen on all interfaces for a connection <!-- -a 参数,指示adb侦听连接的所有接口. --> -d - directs