As in IntelliJ 14 and the alternative to digging through the IntelliJ settings, some trial errors and errors showed that there was something with the template
(anyfile.ext:line)
which is preceded by at least one . in the console, turns into a file link if there is a file known by that name, for example. .(Whatever.java:55) , in the workspace, excluding libraries.
I am using logback. So, at least in my logback.xml, to get links to my classes, I included messages in my template
.\(%class{0}.java:%line\)
.\( \) → The dot must precede the file name: line pattern and file name: line pattern enclosed in parentheses. In this case, alphabetic parentheses are required to return to the log.%class{0} → Just class name without package.java → So that it matches the full file name:%line → Is the line of the code log
In fact, I have other things that always include at least one . to the part (filename:line) , so it is also matched by IntelliJ.
<pattern>%highlight(%-5level) %d{yyyy-MM-dd'T'HH:mm:ss.SSS} %yellow([%thread]) %blue(%logger{36}\(%class{0}.java:%line\)) %msg%n</pattern>
Jason dunkelberger
source share