To use AsyncLoggerConfig, specify {@code Note that for performance reasons, this logger does not include source location by default. You need to specify {@code includeLocation="true"} inthe configuration or any %class, %location or %line conversion patterns in your log4j.xml configuration will produce either a "?" character or no output at all. For best performance, use AsyncLoggerConfig with the FastFileAppender or FastRollingFileAppender, with immediateFlush=false. These appenders have built-in support for the batching mechanism used by the Disruptor library, and they will flush to disk at the end of each batch. This means that even with immediateFlush=false, there will never be any items left in the buffer; all log events will all be written to disk in a very efficient manner.
|
|
|
|
|
|