diff options
Diffstat (limited to 'rules/src/main/resources')
-rw-r--r-- | rules/src/main/resources/log4j2.xml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/rules/src/main/resources/log4j2.xml b/rules/src/main/resources/log4j2.xml new file mode 100644 index 0000000..e4f29d0 --- /dev/null +++ b/rules/src/main/resources/log4j2.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Configuration package="log4j.test" status="WARN"> +<Appenders> + <Console name="Console" target="SYSTEM_OUT"> + <PatternLayout pattern="%markerSimpleName %-5p %C.%M():%L - %msg %ex{full}%n"/> + </Console> + <File name="Log" fileName="./logs/App.log"> + <PatternLayout> + <Pattern>%markerSimpleName %-5p %C.%M():%L - %msg %ex{full}%n</Pattern> + </PatternLayout> + </File> +</Appenders> +<Loggers> + <Root level="trace"> + <AppenderRef ref="Console"/> + <AppenderRef ref="Log"/> + </Root> + <!--<Logger name="root" level="trace" additivity="false"> + <AppenderRef ref="Console"/> + </Logger> + <Logger name="root" level="trace" additivity="false"> + <AppenderRef ref="Console"/> + <AppenderRef ref="Log"/> + </Logger>--> +</Loggers> +</Configuration> |