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

Support custom format using patterns in SyslogLayout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0-beta6
    • None
    • Layouts
    • None

    Description

      It would be nice to be able to appy custom format to a message sent using SyslogLayout, user will be able to use PatternLayout/XMLLayout, etc... and format it as a syslog message (add syslog header ).

      so the usage would be :
      <SyslogWrapLayout facility="lpr">
      <PatternLayout pattern="%d

      {HH:mm:ss.SSS}

      [%t] %marker.%-5level %logger

      {2.}

      - %msg"/>
      </SyslogWrapLayout>

      Attachments

        1. SyslogWrapLayout.java.patch
          8 kB
          Tomek Kaczyński

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tkaczyns Tomek Kaczyński
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: