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 Anil Philip <an...@openwave.com> on 2005/02/07 18:05:56 UTC

multi-threading and log4j - bottleneck?

Hello,
If I have several threads running in a process; they may share a logger or
have separate loggers. But they all write to one log file.
e.g. logger.info();

Since log4j output to the file is quite neat even though interleaving
happens, I wondered if it uses file locks or synchronizes and if threads
waiting on this would create a bottleneck. Or is it asynchronous - the
threads simply write to a buffer and return and the buffer is written out
later (though writing to the buffer is synchronized)?

Thanks,
Anil Philip



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