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

Make PatternLayout header and footer accept a pattern

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.6
    • Layouts
    • None

    Description

      When a layout (I used PatternLayout) is configured with a header the header is written at the top of the file. However, the first log entry is on the same line immediately after the header rather than on its own line:

      header firstlogentry

      It would be better to have the first log entry be on a separate line:

      header
      firstlogentry

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            mcalmus Mike Calmus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: