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

Syslog appender requires format parameter, inconsistent with documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0-beta2
    • 2.0-beta3
    • Appenders
    • None
    • Java 1.6.0_24

    Description

      The Syslog appender requires the format parameter; if not supplied, a NullPointerException occurs:

      Caused by: java.lang.NullPointerException
      at org.apache.logging.log4j.core.appender.SyslogAppender.createAppender(SyslogAppender.java:114)

      The documentation currently gives an illegal example configuration:
      <Syslog name="bsd" host="localhost" port="5514" protocol="TCP"/>

      The above appender configuration demonstrates the problem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ssevertson Scott Severtson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: