Thomas,
By default *most* log4j appenders flush immediately. In particular, the WriterAppender
and its descendants flush an incoming LoggingEvent immediately.
As for the immediateFlush property mentioned by Steffen, it is set to true by default.
The immediate flush behavior can be overridde
List
Subject: Flushing log messages
Hi,
I've noticed that log-entries is 'hanging' somewhere during tailing of a
log-file. Don't know if it's the internals of log4j or a buffered stream.
Is it possible to flush pending log messages, i.e. force them to be written
to
Hi,
I've noticed that log-entries is 'hanging' somewhere during tailing of a
log-file. Don't know if it's the internals of log4j or a buffered stream.
Is it possible to flush pending log messages, i.e. force them to be written
to the prevailing appender(s).
--
Thomas
**