[logback-user] logback line number is not showing up in logs
Debraj Manna
subharaj.manna at gmail.com
Fri Jan 12 11:18:45 CET 2018
I am using logback 1.2.3 .
I have added the below dependency to my pom.xml
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
My configuration looks like below
<configuration> <appender name="CONSOLE" class=
"ch.qos.logback.core.ConsoleAppender"> <Target>System.out</Target> <encoder>
<pattern>%p [%d{yyyy-MM-dd HH:mm:ss,SSS}] %c{3}:[%C{1}:%M:%L] - [%t] - %m%n
</pattern> </encoder> </appender> <root level="INFO"> <appender-ref ref=
"CONSOLE"/> <appender-ref ref="datadog"/> </root> </configuration>
Filename & line number is not showing up. A question mark is coming.
INFO [2018-01-12 07:06:54] c.v.s.f.FlowStoreWarmer:[?:?:?] -
[FlowStoreWarmer_flow_cache_warmup_thread] - no work to do for cid
19099
Can some one let me know what is going wrong? Do I have add logback-core
also as dependency?
Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20180112/7f211dcd/attachment-0001.html>
More information about the logback-user
mailing list