Skip to content

Commit

Permalink
Relates #4 logue fonctionnent avec les spécifications demandé. Consol…
Browse files Browse the repository at this point in the history
…e à partire du niveau Warn
  • Loading branch information
rascho1 committed Mar 17, 2019
1 parent d0525c3 commit 5450065
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<Appenders>
<File name="warning" filename="log/warning.log">
<Console name="warne" target="SYSTEM_OUT">
<LevelRangeFilter minLevel="WARN" maxLevel="WARN" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="%highlight{%d{HH:mm:ss} [%t] %-5level %c - %msg%n}" disableAnsi="false"/>
</Console>
<Console name="fatal" target="SYSTEM_OUT">
<LevelRangeFilter minLevel="FATAL" maxLevel="FATAL" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="%highlight{%d{HH:mm:ss} [%t] %-5level %c - %msg%n}" disableAnsi="false"/>
</Console>
<File name="info" filename="logi/info">
<LevelRangeFilter minLevel="INFO" maxLevel="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
<File name="fatal" filename="logs/fatal.log">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
<File name="console" filename="logi/info.log">
<PatternLayout
pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
</Appenders>
<Loggers>
<Root level="trace">
<AppenderRef ref="console"/>
<AppenderRef ref="warning"/>
<AppenderRef ref="warne"/>
<AppenderRef ref="fatal"/>

</Root>
</Loggers>
</Configuration>

0 comments on commit 5450065

Please sign in to comment.