Advertisement
Drift_91

log4j2.xml

Jul 18th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.13 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Configuration status="WARN" packages="com.mojang.util">
  3.     <Appenders>
  4.         <Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console>
  5.         <Queue name="TerminalConsole">
  6.             <PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" />
  7.         </Queue>
  8.         <RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
  9.             <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %replace{%msg}{\x1B\[([0-9]{1,2}(;[0-9]{1,2})*)?[m|K]}{}%n" />
  10.             <Policies>
  11.                 <TimeBasedTriggeringPolicy />
  12.                 <OnStartupTriggeringPolicy />
  13.             </Policies>
  14.             <DefaultRolloverStrategy max="1000"/>
  15.         </RollingRandomAccessFile>
  16.     </Appenders>
  17.     <Loggers>
  18.         <Root level="info">
  19.             <filters>
  20.                 <MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
  21.             </filters>
  22.             <AppenderRef ref="WINDOWS_COMPAT"/>
  23.             <AppenderRef ref="File"/>
  24.             <AppenderRef ref="TerminalConsole"/>
  25.         </Root>
  26.     </Loggers>
  27. </Configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement