关于Android打log

来源:互联网 发布:手机音乐后期软件 编辑:程序博客网 时间:2024/05/17 23:26

使用[adb] logcat [option] … [filter-spec] … 命令。

1. -s 指定过滤器

adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG

2. 如果出现error: more than one device/emulator,需要adb -s deviceName指定设备,

adb devices 得到设备名 MyAndroidadb -s MyAndroid logcat -s Unity 

3. -f 输出log到指定文件

adb -s deviceName logcat -s Unity  -f c:\unity_log.txt
转载地址:http://blog.csdn.net/hanchao123/article/details/52461370
原创粉丝点击