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 Cr...@lotus.com on 2001/07/27 15:46:37 UTC

Message Queing

Hi I have had no luck with responses on the user list so I would like to
pose my question to the Log4j dev group.  I'm basically wondering if log4j
has the ability to queue log requests.  I noticed JLog's Handlers (roughly
equivalent to log4j's Appenders), in their default, asynchronous mode pull
log records off a queue and process them "at their leisure."   While I know
Log4j features asynchronous logging, does that necessarily imply that a
queue is used?  Can someone please clarify?

Thanks,
Craig Reichenbach

Original Message:
In looking at Log4j source, if one uses a File based Appender, it looks
like calls to the various Category log functions (debug, info, error, etc)
are held up until the actual File I/O occurs via the QuietWriter class.  I
did notice the immediateFlush boolean in WriterAppender, and although it
helps performance, it is considered a heavy tradeoff to turn off
immediateFlush.

I just want to make sure that I am not missing anything;  Log4j does not
have message queing functionality does it?

Craig R.


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





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