adb logcat -v threadtime -s TestAPP[UI]:* TestAPP[Logic]:* TestAPP[Model]:* TestAPP[Engine]:* > ~/mylogs/testapp.log
过滤器的格式是一个这样的串:
-s 设置过滤器,格式如下:
<tag>[:priority]
其中 <tag> 使用 * 表示所有,priority 如下所示:
V Verbose
D Debug
I Info
W Warn
E Error
F Fatal
S Silent
-r [<kbytes>] Rotate log every kbytes. (16 if unspecified). Requires -f
-n <count> Sets max number of rotated logs to <count>, default 4
-v <format> 设置log的打印格式, <format> 是下面的一种:
brief W/tag ( 876): message
process W( 876) message (tag)
tag W/tag : message
thread W( 876:0x37c) message
raw message
time 09-08 05:40:26.729 W/tag ( 876): message
threadtime 09-08 05:40:26.729 876 892 W tag : message
long [ 09-08 05:40:26.729 876:0x37c W/tag ] message
过滤器的格式是一个这样的串:
-s 设置过滤器,格式如下:
<tag>[:priority]
其中 <tag> 使用 * 表示所有,priority 如下所示:
V Verbose
D Debug
I Info
W Warn
E Error
F Fatal
S Silent
-r [<kbytes>] Rotate log every kbytes. (16 if unspecified). Requires -f
-n <count> Sets max number of rotated logs to <count>, default 4
-v <format> 设置log的打印格式, <format> 是下面的一种:
brief W/tag ( 876): message
process W( 876) message (tag)
tag W/tag : message
thread W( 876:0x37c) message
raw message
time 09-08 05:40:26.729 W/tag ( 876): message
threadtime 09-08 05:40:26.729 876 892 W tag : message
long [ 09-08 05:40:26.729 876:0x37c W/tag ] message