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

Syslog appender requires format parameter, inconsistent with documentation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0-beta2
    • Fix Version/s: 2.0-beta3
    • Component/s: Appenders
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: