Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-962

AsyncAppender can't print the line

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.1
    • logback-core
    • 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

      {35}

      - %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

      Attachments

        Activity

          People

            logback-dev Logback dev list
            sishuzhe 司书哲
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: