Geyser/bootstrap/standalone/src/main/resources/log4j2.xml

25 lines
1.2 KiB
XML
Raw Normal View History

2020-03-05 02:35:23 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
2020-07-03 00:10:43 +00:00
<TerminalConsole name="TerminalConsole">
2020-03-05 02:35:23 +00:00
<PatternLayout pattern="[%d{HH:mm:ss} %style{%highlight{%level}{FATAL=red dark, ERROR=red, WARN=yellow bright, INFO=cyan bright, DEBUG=green, TRACE=white}}] %minecraftFormatting{%msg}%n"/>
</TerminalConsole>
2020-07-03 00:10:43 +00:00
<Console name="Console" target="SYSTEM_OUT" follow="true">
<PatternLayout pattern="[%d{HH:mm:ss} %style{%highlight{%level}{FATAL=red dark, ERROR=red, WARN=yellow bright, INFO=cyan bright, DEBUG=green, TRACE=white}}] %minecraftFormatting{%msg}%n"/>
</Console>
2020-03-05 02:35:23 +00:00
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %level{length=1} - %msg%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<OnStartupTriggeringPolicy/>
</Policies>
</RollingRandomAccessFile>
</Appenders>
<Loggers>
<Root level="INFO">
2020-07-03 00:10:43 +00:00
<AppenderRef ref="TerminalConsole"/>
2020-03-05 02:35:23 +00:00
<AppenderRef ref="Console"/>
<AppenderRef ref="File"/>
</Root>
</Loggers>
</Configuration>