0
我想更改日志文本格式化的方式,变化android.util.Log日志文本格式
目前与android.util.Log登录时
Log.d("tag", "this is the text I added");
它作为
<!>com.appname.android.classname 1286<!> this is the text I added
我想输出它作为
[com.appname.android.classname:1286] this is the text I added
任何想法我们如何做到这一点?
是标签等于' com.appname.android.classname 1286 '? – 2012-07-06 13:01:10
没有那是文件名和行号。它是logcat的默认格式。标签出现在其自己的单独列下 – Anand 2012-07-13 09:36:12