I have 2 FileHandlers that write out to two separate files, and the amount of I/O occurring is slowing down my application quite a bit:
I\'ve decided to hav
You can use log4j 2 JDK Logging Adapter to enable logging with log4j, And log4j 2 provide remarkable asynchronous Logging mechanism with lot of configuration options.
Necessary VM arguments
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
You can find more information about log4j 2 async logging here and tomcat configuration details here
sample Log4j2.xml for async loggign
%d %p %c{1.} [%t] %m %ex%n