logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Severtson (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-120) Socket/Syslog appenders throw IOException if destination socket is not open
Date Thu, 15 Nov 2012 18:38:14 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Scott Severtson updated LOG4J2-120:

    Attachment: log4j2.xml

Sample log4j2.xml configuration file to demonstrate the problem.
> Socket/Syslog appenders throw IOException if destination socket is not open
> ---------------------------------------------------------------------------
>                 Key: LOG4J2-120
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-120
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.0-beta2
>         Environment: Java 1.6.0_24
>            Reporter: Scott Severtson
>         Attachments: log4j2.xml
> If Log4J2 is initialized with a configured Socket or Syslog appender, and the destination
socket is not open, a IOException is thrown within TCPSocketManagerFactory on the "new Socket(data.host,
data.port)" line.
> This exception results in either a NullPointerException thrown to the calling code, regardless
if if suppressExceptions is true or false. No reconnect attempt is made, regardless if reconnectionDelay
is set to a positive number.
> The socket can still be created by TCPSocketManagerFactory, but attempting to connect
to the socket should wait until the first logging statement so that reconnection retries may
be used.

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

View raw message