[logback-user] logback line number is not showing up in logs
David Roussel
nabble at diroussel.xsmail.com
Fri Jan 12 11:20:58 CET 2018
Is the code compiled with javac in debug mode? If the debug info is not in the class files, then there are no line numbers to be displayed
> On 12 Jan 2018, at 10:18, Debraj Manna <subharaj.manna at gmail.com> wrote:
>
> 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,
> _______________________________________________
> logback-user mailing list
> logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20180112/803d29cd/attachment-0001.html>
More information about the logback-user
mailing list