Logging: Print filename and line instead of logger name.

This commit is contained in:
Johannes Mockenhaupt 2017-07-24 15:17:06 +02:00
parent 377b711896
commit d49356a922
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -15,7 +15,7 @@
<maxHistory>120</maxHistory> <maxHistory>120</maxHistory>
</rollingPolicy> </rollingPolicy>
<encoder> <encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level [%file:%line]: %msg%n</pattern>
</encoder> </encoder>
</appender> </appender>
@ -24,7 +24,7 @@
<pattern>%logger{0}</pattern> <pattern>%logger{0}</pattern>
</tagEncoder> </tagEncoder>
<encoder> <encoder>
<pattern>[%thread] %-5level %logger{36} - %msg%n</pattern> <pattern>[%thread] %-5level [%file:%line]: %msg%n</pattern>
</encoder> </encoder>
</appender> </appender>