开发者

How to output LogCat to Console?

Is there a way to make LogCat's output to appear in Console view in Eclipse?

LogCat view is much less convenien开发者_JAVA百科t that Console, because it's hard to see long messages in it (they are trimmed by column border) and there are no clickable highlighting in exception stack traces to quickly navigate to source of error.

Just to make clear - I'd like to have clickable stacktraces, like the ones in normal Eclipse console so I can quickly navigate to the source of error.


Requires an extra step, but you can copy and paste into the Console Stack Trace View, and you then get the clickable links. Just select any or all lines from Logcat, copy, and paste them in the Console (select Java Stack Trace in the Console Display button first).


I was also having the same issue. I tried ddms instead of logcat, it doesn't put up in Eclipse but it solves my problem. It displays the logs in different colors so that i can view and differentiate them easily.... Thanks....


I don't think it's possible. You could just move the Logcat to another place. e.g. In the bottom of Eclipse. Just drag&drop it by grabing its tab.


You might want to use the LOGBACK plugin ;-)

http://logback.qos.ch/consolePlugin.html

GOOD LUCK!!


Instead Logcat, try ddms. It puts the log messages differentiated based on their type and you'll have much more control over log message filtering in ddms.

This binary is located in the same place where logcat is located. So no worries.... instead of typing out logcat, type ddms in console.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜