<?xml version="1.0" encoding="UTF-8"?><!-- Don't forget to set system property
-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
or
-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.BasicAsyncLoggerContextSelector
to make all loggers asynchronous. --><Configurationstatus="WARN"><Appenders><!-- Async Loggers will auto-flush in batches, so switch off immediateFlush. --><RandomAccessFilename="RandomAccessFile"fileName="async.log"immediateFlush="true"append="false"><PatternLayout><Pattern>%d %p %c{1.} [%t] - %l - %m %ex%n</Pattern></PatternLayout></RandomAccessFile><Consolename="Console"target="SYSTEM_OUT"><PatternLayout><Pattern>%d %p %c{1.} [%t] - %l - %m %ex%n</Pattern></PatternLayout></Console></Appenders><Loggers><!-- <Root level="info" includeLocation="true">--><!-- <AppenderRef ref="RandomAccessFile"/>--><!-- </Root>--><AsyncLoggername="asyncLoggerInfo"additivity="FALSE"level="info"includeLocation="True"><appender-refref="RandomAccessFile"/><appender-refref="Console"/></AsyncLogger><Rootlevel="info"includeLocation="true"><AppenderRefref="Console"/><AppenderRefref="RandomAccessFile"/></Root></Loggers></Configuration>