浏览 1539 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2011-10-10
利用 console 的 hyperlink 功能,我们可以如下配置 log4j: log4j.appender.A1.layout.ConversionPattern =%d{HH:mm:ss,SSS} [%t] %-5p (%c.java:%L) - %m%n 这样,输出的日志里,就有超链(hyperlink)了,点击,即可跳转到相应的代码上。 如: 02:45:08,304 [Thread-0] DEBUG (org.springframework.jms.core.JmsTemplate.java:428) - Executing callback on JMS Session [connection1228.session1229] 点击 (org.springframework.jms.core.JmsTemplate.java:428) 即可跳转到源码。 ------------------------------ 参考: Stacktrace Console http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fconsole%2Fref-stacktrace_console.htm The Stacktrace Console displays a Java stacktrace in a nicely formatted manner, providing hyperlink support to quickly jump to source code locations. Open Link Allows you to follow the hyperlink which was right-clicked on in the current stacktrace. ------------------------------ Open Link http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fconsole%2Fref-stacktrace_console.htm Select the Open Link command to follow a detected hyperlink in the Stacktrace Console or the CVS Console. 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |