如何从 Logcat 中删除我的包名称?
How can I remove my package name from Logcat?
我的包裹名称妨碍了我轻松阅读 logcat 消息。我必须向右滚动才能看到任何东西。每行前面有:
08-07 00:52:58.237 16332-16332/com.mycompay.mypackage.mypackage/System.out:
我怎样才能去掉那里的包名? 16332-16332 在那里做什么?我也可以摆脱它吗?
对于自定义Logcat你应该阅读Write and View Logs with Logcat
Every Android log message has a tag and a priority associated with it.
The tag of a system log message is a short string indicating the
system component from which the message originates .
日志消息 FORMAT
是:
date time PID-TID/package priority/tag: message
PID stands for process identifier and TID is thread identifier; they
can be the same if there’s only one thread.
我的包裹名称妨碍了我轻松阅读 logcat 消息。我必须向右滚动才能看到任何东西。每行前面有:
08-07 00:52:58.237 16332-16332/com.mycompay.mypackage.mypackage/System.out:
我怎样才能去掉那里的包名? 16332-16332 在那里做什么?我也可以摆脱它吗?
对于自定义Logcat你应该阅读Write and View Logs with Logcat
Every Android log message has a tag and a priority associated with it. The tag of a system log message is a short string indicating the system component from which the message originates .
日志消息 FORMAT
是:
date time PID-TID/package priority/tag: message
PID stands for process identifier and TID is thread identifier; they can be the same if there’s only one thread.