a.dpf_manager.3.1.1.source-code.log4j2.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout> <MarkerPatternSelector defaultPattern="%-5p - %msg%n"> <PatternMatch key="PLAIN" pattern="%msg%n"/> <PatternMatch key="EXCEPTION" pattern="%msg%n"/> </MarkerPatternSelector> </PatternLayout> </Console> <TextAreaAppender name="TextArea" maxLines="100"> <PatternLayout> <MarkerPatternSelector defaultPattern="%-5p - %msg%n"> <PatternMatch key="PLAIN" pattern="%msg%n"/> <PatternMatch key="EXCEPTION" pattern="%msg%n"/> </MarkerPatternSelector> </PatternLayout> </TextAreaAppender> <File name="File" fileName="${sys:app.home}/data/DpfManager.log" immediateFlush="true" append="true"> <PatternLayout> <MarkerPatternSelector defaultPattern="%d{dd/MM HH:mm} %-5p - %msg%n"> <PatternMatch key="EXCEPTION" pattern="%msg%n"/> </MarkerPatternSelector> </PatternLayout> </File> <Async name="Async"> <AppenderRef ref="File"/> </Async> </Appenders> <Loggers> <Root level="debug" additivity="false"> <AppenderRef ref="Console"/> <AppenderRef ref="TextArea"/> <AppenderRef ref="Async" level="info"/> </Root> </Loggers> </Configuration>