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 Robert Fischer <tr...@trispace.org> on 2006/03/12 22:57:16 UTC
append() and connection establishment
Hi,
i'm developing a custom appender/receiver for the current SVN version of
log4j. My problem is that establishing a connection to the remote server is
quite time consuming, so the user has to wait a few seconds before sending a
LoggingEvent. I've separated the connection process into a new thread but now
my question is what's the "good practice" in log4j to adress this kind of
problem:
- blocking the first append() call until the connection is established? IMHO
not very comfortable for the user
- routing incoming LoggingEvents through a RingBuffer like the SMTPAppender
does?
- switching the "active" field to "false" until the connection is established
and let the user poll for isActive()?
Questions over questions :)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org