ClaptrapBot/src/main/resources/log4j2.xml

49 lines
2.4 KiB
XML
Raw Normal View History

2017-12-22 19:20:26 +01:00
<Configuration status="error" packages="com.coralogix.sdk.appenders">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
2018-01-18 10:28:54 +01:00
<!--<PatternLayout pattern="[%d{HH:mm:ss.SSS}][%-5level][%-30.30c{1.}]: %msg%n" />-->
<PatternLayout>
2022-05-15 18:39:46 +02:00
<Pattern>[%d{HH:mm:ss.SSS}]%highlight{[%-5level]}{FATAL=red blink, ERROR=red, WARN=bright yellow ,
INFO=blue, DEBUG=bright black, TRACE=cyan}[%-30.30c{1.}]: %highlight{%msg%n}{FATAL=red blink,
ERROR=red, WARN=bright yellow , INFO=blue, DEBUG=bright black, TRACE=cyan}
</Pattern>
2018-01-18 10:28:54 +01:00
</PatternLayout>
</Console>
<RollingFile name="RollingFile" fileName="./logs/current-day.log"
filePattern="./logs/$${date:yyyy-MM}/discordBot-%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout>
2022-05-15 18:39:46 +02:00
<Pattern>[%d{HH:mm:ss.SSS}]%highlight{[%-5level]}{FATAL=red blink, ERROR=red, WARN=bright yellow ,
INFO=blue, DEBUG=bright black, TRACE=cyan}[%-30.30c{1.}]: %highlight{%msg%n}{FATAL=red blink,
ERROR=red, WARN=bright yellow , INFO=blue, DEBUG=bright black, TRACE=cyan}
</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy interval="1" modulate="true"/>
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
2018-01-13 19:19:30 +01:00
<DefaultRolloverStrategy max="120"/>
2017-12-22 19:20:26 +01:00
</RollingFile>
<File name="current" fileName="logs/current.log" append="false">
<PatternLayout>
2022-05-15 18:39:46 +02:00
<Pattern>[%d{HH:mm:ss.SSS}]%highlight{[%-5level]}{FATAL=red blink, ERROR=red, WARN=bright yellow ,
INFO=blue, DEBUG=bright black, TRACE=cyan}[%-30.30c{1.}]: %highlight{%msg%n}{FATAL=red blink,
ERROR=red, WARN=bright yellow , INFO=blue, DEBUG=bright black, TRACE=cyan}
</Pattern>
</PatternLayout>
</File>
</Appenders>
<Loggers>
<Logger name="net.Broken" level="${env:LOG_LEVEL}" additivity="false">
2018-03-05 10:43:41 +01:00
<AppenderRef ref="Console"/>
2018-03-05 12:17:58 +01:00
<AppenderRef ref="current"/>
<AppenderRef ref="RollingFile"/>
2018-03-05 10:43:41 +01:00
</Logger>
2017-12-26 16:25:35 +01:00
<Root level="debug">
<AppenderRef ref="Console" level="info"/>
2017-12-22 19:20:26 +01:00
<AppenderRef ref="RollingFile" level="info"/>
<AppenderRef ref="current" level="info"/>
2017-12-22 19:20:26 +01:00
</Root>
</Loggers>
</Configuration>