Skip to content

Commit

Permalink
log: Relates #5
Browse files Browse the repository at this point in the history
  • Loading branch information
TabzKid committed Jun 16, 2019
1 parent 18fd2d5 commit 5afacda
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
<PatternLayout
pattern="%highlight{%d{HH:mm:ss} [%t] %-5level %c{6} - %msg%n}{INFO=black, WARN=yellow, FATAL=red}" disableAnsi="false"/>
</Console>
<File name="file" fileName="logs/app.log">
<PatternLayout>
<pattern>%d{HH:mm:ss} [%t] %-5level %c{6} - %msg%n</pattern>
</PatternLayout>
</File>
</Appenders>
<Loggers>
<Root level="warn" additivity="false">
<Root level="debug" additivity="false">
<AppenderRef ref="console"/>
<appender-ref ref="file"/>
</Root>
</Loggers>
</configuration>

0 comments on commit 5afacda

Please sign in to comment.