diff options
Diffstat (limited to 'src/main/resources/log4j2.xml')
-rw-r--r-- | src/main/resources/log4j2.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml new file mode 100644 index 00000000..c868e8c5 --- /dev/null +++ b/src/main/resources/log4j2.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Configuration status="WARN" packages="net.minecraft,com.mojang"> + <Appenders> + <Queue name="TerminalConsole"> + <PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" /> + </Queue> + <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> + </RollingRandomAccessFile> + </Appenders> + <Loggers> + <Root level="info"> + <filters> + <MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" /> + </filters> + <AppenderRef ref="File"/> + <AppenderRef ref="TerminalConsole"/> + </Root> + </Loggers> +</Configuration> + |