Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.1.1
-
jdk6 windows7
Description
My logback.xml use the examples like this ,
I add a %L in encoder pattern but I can't get the line number
<configuration>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>logs/test/myapp2.log</file>
<encoder>
<pattern>%logger
- %L %msg%n</pattern>
</encoder>
</appender>
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="FILE" />
</appender>
<root level="DEBUG">
<appender-ref ref="ASYNC" />
</root>
</configuration>
result is com.ebupt.test.TestLogback -? xxx