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

threadName has empty value that is logged via logback-access

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.3, 1.3.0-alpha5
    • logback-access
    • Jetty 9.4.34.v20201102

      Debian,

      java 8/11

    Description

      according to the documentation: https://logback.qos.ch/manual/layouts.html

      https://logback.qos.ch/manual/layouts.html#threadNameI / threadName Name of the thread which processed the request.

      but when you set [%*I*] or [%*threadName*]  at logback-access.xml

      in the log file will be saved "[-]"

      no value is set as threadName,

      eg.

      <encoder>
      <pattern>%h %l %u [%date\{ISO8601}] [%I] "%r" %s %b "%i{Referer}" [%D]ms</pattern>
      </encoder>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            Rylko Krystian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: