【发布时间】:2014-05-22 13:05:25
【问题描述】:
我想过滤一个 logcat
String myCommand="logcat -f /sdcard/output.txt"; //no filters, keep writing
myCommand="logcat -d -f /sdcard/output.txt"; //no filters, just a dump
对我来说很好,但对 mytag 来说不行。
我也在用代码:
String myCommand="logcat myTag *:S"; //the equivalent of logcat -s myTag
myCommand="logcat -s myTag:D";
myCommand="logcat -s myTag:E myTag2:D";
myCommand="logcat myTag:E myTag2:D";
但它返回空文件。
【问题讨论】:
标签: android