You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Andrew Berman <re...@gmail.com> on 2013/10/22 22:17:47 UTC
[LOG4J 2] SocketAppender and Async Logging
Hello,
I was testing a SocketAppender with a reconnection delay and set all of the
loggers to async. I then turned off the server receiving the socket
connection to test the reconnection delay and the appender is not retrying
the connection after the delay. As a result, I lose the log data that
should've been sent to the socket. Is SocketAppender not compatible with
async logging? Is it possible to modify the SocketAppender to have a
reconnection interval as well so it continually retries using some sort of
internal buffer?
Is there a better method of sending the log data so it is reliably captured
by a remote server if the remote server is down for a period of time?
Thanks,
Andrew