Skip to content

Commit

Permalink
add log4j2 config
Browse files Browse the repository at this point in the history
  • Loading branch information
willr3 committed May 10, 2023
1 parent dd4f147 commit 7876406
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<File name="file" fileName="/tmp/qdup.log">
<PatternLayout>
<!-- <Pattern>%d %p %c{1.} %m %ex%n</Pattern>-->
<Pattern>%d %p %c %m %ex%n</Pattern>
</PatternLayout>
</File>
<Console name="STDOUT" follow="true">
<PatternLayout disableAnsi="false" pattern="%highlight{%d{HH:mm:ss.SSS} %m%n}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=white, DEBUG=green bold, TRACE=blue}"/>
</Console>
</Appenders>
<Loggers>
<Logger name="org.apache" level="error" additivity="false">
<!-- <AppenderRef ref="STDOUT"/>-->
</Logger>
<Root level="info">
<!-- <AppenderRef ref="file" level="info"/>-->
<AppenderRef ref="STDOUT" level="info"/>
</Root>
</Loggers>
</Configuration>

0 comments on commit 7876406

Please sign in to comment.