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

Make PatternLayout header and footer accept a pattern

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: Layouts
    • Labels:
      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

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              mcalmus Mike Calmus
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: