Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-107

Nesting pattern layout options is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta2
    • 2.0-beta3
    • Layouts
    • None

    Description

      This pattern:

      <PatternLayout pattern="%highlight{%d{dd MMM yyyy HH:mm:ss,SSS}{GMT+0} [%t] %-5level: %msg%n%throwable}" />
      

      Incorrectly outputs:

      02 Nov 2012 16:51:14,907{GMT+0 [main] FATAL: Fatal message.
      }02 Nov 2012 16:51:14,910{GMT+0 [main] ERROR: Error message.
      }02 Nov 2012 16:51:14,914{GMT+0 [main] WARN : Warning message.
      }02 Nov 2012 16:51:14,917{GMT+0 [main] INFO : Information message.
      }02 Nov 2012 16:51:14,920{GMT+0 [main] DEBUG: Debug message.
      }02 Nov 2012 16:51:14,924{GMT+0 [main] TRACE: Trace message.
      }02 Nov 2012 16:51:14,929{GMT+0 [main] ERROR: Error message.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: