logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emanuele Colombo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-101) Attribute "format" for SyslogAppender is mandatory
Date Fri, 19 Oct 2012 14:28:12 GMT
Emanuele Colombo created LOG4J2-101:
---------------------------------------

             Summary: Attribute "format" for SyslogAppender is mandatory
                 Key: LOG4J2-101
                 URL: https://issues.apache.org/jira/browse/LOG4J2-101
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 2.0-beta2
            Reporter: Emanuele Colombo


In the SyslogAppender the configuration attribute "Format" must be present, otherwise a NullPointerException
is thrown in method "createAppender" when the following statement is executed:

if (format.equalsIgnoreCase(RFC5424))

The fix is simply to add a check so the "equalsIgnoreCase" is called only if the format variable
isn't Null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message