Prev Next

Java / log4j

Explain immediateFlush property of FileAppender.

ImmediateFlush property enables the output stream to the file being flushed with each append operation.

By default the property is set to true.

To switch off immediateFlush use the below configuration. When set to false, it may improve performance.

log4j.appender.FILE.ImmediateFlush=false

More Related questions...

Show more question and Answers...


Comments & Discussions