You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Emanuele Colombo (JIRA)" <ji...@apache.org> on 2012/10/19 16:28:12 UTC
[jira] [Created] (LOG4J2-101) Attribute "format" for SyslogAppender
is mandatory
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
[jira] [Closed] (LOG4J2-101) Attribute "format" for SyslogAppender
is mandatory
Posted by "Emanuele Colombo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emanuele Colombo closed LOG4J2-101.
-----------------------------------
The problem is now solved. Thanks!
> 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
> Fix For: 2.0-beta3
>
>
> 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
[jira] [Resolved] (LOG4J2-101) Attribute "format" for
SyslogAppender is mandatory
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers resolved LOG4J2-101.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.0-beta3
Verified the problem and fixed in revision 1400254. Please verify and close.
> 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
> Fix For: 2.0-beta3
>
>
> 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