Skip to content

Commit

Permalink
Updated the log4j configuration to be consistent with other configura…
Browse files Browse the repository at this point in the history
…tions.
  • Loading branch information
david-waltermire committed Nov 16, 2024
1 parent 7978ff0 commit 1c403cf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions cli-processor/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
<Configuration verbose="true">
<Appenders>
<Console name="console-trace" target="SYSTEM_OUT" immediateFlush="true">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" charset="UTF-8" />
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %highlight{%m}{DEBUG=green, TRACE=blue}%n" charset="UTF-8" />
<ThresholdFilter level="INFO" onMatch="DENY" onMismatch="ACCEPT" />
</Console>
<Console name="console-info" target="SYSTEM_OUT" immediateFlush="true">
<PatternLayout pattern="%m%n" charset="UTF-8" />
<!-- <PatternLayout pattern="%highlight{%m}{WARN=yellow bold, INFO=magenta}%n" charset="UTF-8" />-->
<PatternLayout charset="UTF-8">
<LevelPatternSelector defaultPattern="%m%n">
<PatternMatch key="WARN" pattern="%style{%m}{bright yellow}%n"/>
</LevelPatternSelector>
</PatternLayout>
<Filters>
<ThresholdFilter level="ERROR" onMatch="DENY" onMismatch="ACCEPT" />
<ThresholdFilter level="DEBUG" onMatch="DENY" onMismatch="NEUTRAL" />
Expand All @@ -16,7 +21,12 @@
</Console>
<Console name="console-error" target="SYSTEM_ERR" immediateFlush="true">
<!-- <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" charset="UTF-8" />-->
<PatternLayout pattern="%m%n" charset="UTF-8" />
<PatternLayout charset="UTF-8">
<LevelPatternSelector defaultPattern="%style{%m}{bright red}%n">
<PatternMatch key="FATAL" pattern="%style{%-5level: %m}{bright magenta}%n"/>
</LevelPatternSelector>
</PatternLayout>
<!-- <PatternLayout pattern="%highlight{%m%n}{FATAL=red blink, ERROR=red bold}" charset="UTF-8" />-->
<ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY" />
</Console>
</Appenders>
Expand Down

0 comments on commit 1c403cf

Please sign in to comment.