IntelliJ中的控制台输出中是否可以使用可点击的类名? [英] Is it possible to have clickable class names in console output in IntelliJ?

查看:158
本文介绍了IntelliJ中的控制台输出中是否可以使用可点击的类名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在IntelliJ内部运行服务器时,您可以在屏幕底部的窗口中看到控制台输出。

When you run a server inside of IntelliJ you can see the console output in the window at the bottom of the screen.

有没有办法格式化输出以便IntelliJ识别类名并使其可点击?然后,当我在服务器输出中看到一个类名时,我可以点击它然后直接去那里。

Is there any way to format the output so that IntelliJ will recognize class names and make them clickable? Then when I see a class name in the server output I could click on it and go straight there.

谢谢:)

推荐答案

有。摘自在线帮助 http://www.jetbrains.com/idea/webhelp/setting-log- options.html


如果您使用的是第三方日志记录工具,则可能需要生成
消息输出,模仿与源代码的标准链接为
for stacktrace line(at
。(:))。
为此,您应该将特定的转换模式添加到log.xml
配置文件中。例如,在log4j转换模式中,这个
将是

If you are using third-party logging tools, you might want to make the message's output, that mimics a standard linkage to the source code as for stacktrace line (at .(:)). For that, you should add specific Conversion Pattern to your log.xml configuration file. For example, in a log4j Conversion Pattern this would be



<param name="ConversionPattern" value="%-5p - [%-80m] - at %c.%M(%F:%L)%n"/>

然而,使用完全限定名称,方法名称等,产品输出非常难看。

However the produces output is quite ugly with fully qualified names, method names etc.

这篇关于IntelliJ中的控制台输出中是否可以使用可点击的类名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆