开发者

eclipse + ddms - don't copy timestamp etc from ddms logs?

开发者 https://www.devze.com 2023-03-06 04:10 出处:网络
I\'m using the eclipse plugin for android development. When I copy/paste log contents from ddms, I always get the timestamp etc in the copy/paste:

I'm using the eclipse plugin for android development. When I copy/paste log contents from ddms, I always get the timestamp etc in the copy/paste:

05-16 21:43:09.082: INFO/ActivityManager(110): [message text]
05-16 21:43:09.152: INFO/ActivityManager(110): [message text]
...
开发者_JAVA百科

Is there any way to clip the timestamp + debug level + pid from the paste as seen above, and only get the [message text] copied? It just gets annoying sometimes when sending log details to others as it's a bit noisy for them to look at,

Thanks


Filter your logs with this one-liner:

perl -pe 's/^(.*?: ){2}//'


Write a 5 line program to remove the first 20 characters of each line to remove the timestamp, or use line.split(" ") to remove the first 3 parts.

Or use a text editor with block selection such as TextPad

0

精彩评论

暂无评论...
验证码 换一张
取 消