ClaptrapBot/src/main/resources/log4j2.xml

31 lines
1.6 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>
<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>
</Console>
<RollingFile name="RollingFile" fileName="./logs/curent.log"
filePattern="./logs/$${date:yyyy-MM}/discordBot-%d{yyyy-MM-dd-HH}-%i.log.gz">
<PatternLayout>
2018-01-08 11:09:46 +01: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"/>
<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>
</Appenders>
<Loggers>
2017-12-26 16:25:35 +01:00
<Root level="debug">
2017-12-22 19:20:26 +01:00
<AppenderRef ref="RollingFile" level="info" />
<AppenderRef ref="Console" level="info"/>
2017-12-22 19:20:26 +01:00
<AppenderRef ref="RollingFile" level="info"/>
</Root>
</Loggers>
</Configuration>