Skip to content

Commit

Permalink
Disable saving log4j logs in file (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git authored Feb 24, 2024
2 parents f43a7a1 + d14ebe1 commit 5dd25e5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,13 @@
<Console name="SysOut" target="SYSTEM_OUT">
<PatternLayout pattern="[%d{HH:mm:ss}] [%highlight{%t/%level}{FATAL=red bold, ERROR=fg_bright_red bold, WARN=yellow bold, INFO=fg_bright_blue bold, DEBUG=fg_bright_black, TRACE=magenta}]: %msg%n"/>
</Console>
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<OnStartupTriggeringPolicy/>
</Policies>
<DefaultRolloverStrategy max="1000"/>
</RollingRandomAccessFile>
</Appenders>
<Loggers>
<Root level="info">
<filters>
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL"/>
</filters>
<AppenderRef ref="SysOut"/>
<AppenderRef ref="File"/>
</Root>
</Loggers>
</Configuration>

0 comments on commit 5dd25e5

Please sign in to comment.