|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<Configuration status="DEBUG">
|
|
|
|
<Appenders>
|
|
|
|
<Console name="LogToConsole" target="SYSTEM_OUT">
|
|
|
|
<PatternLayout
|
|
|
|
pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%t] %c : %m%n" />
|
|
|
|
</Console>
|
|
|
|
<RollingFile name="LogToFile"
|
|
|
|
filePattern="logs/server.%d{yyyy-MM-dd}.log"
|
|
|
|
immediateFlush="true">
|
|
|
|
<PatternLayout
|
|
|
|
pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%t] %c : %m%n" />
|
|
|
|
<Policies>
|
|
|
|
<TimeBasedTriggeringPolicy interval="1" modulate="true" />
|
|
|
|
</Policies>
|
|
|
|
</RollingFile>
|
|
|
|
<RollingFile name="LogToNotFound"
|
|
|
|
filePattern="logs/not_found.%d{yyyy-MM-dd}.log"
|
|
|
|
immediateFlush="true">
|
|
|
|
<PatternLayout
|
|
|
|
pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%t] %c : %m%n" />
|
|
|
|
<Policies>
|
|
|
|
<TimeBasedTriggeringPolicy interval="1" modulate="true" />
|
|
|
|
</Policies>
|
|
|
|
</RollingFile>
|
|
|
|
<RollingFile name="LogToIpInfo"
|
|
|
|
filePattern="logs/ip_info.%d{yyyy-MM-dd}.log"
|
|
|
|
immediateFlush="true">
|
|
|
|
<PatternLayout
|
|
|
|
pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%t] %c : %m%n" />
|
|
|
|
<Policies>
|
|
|
|
<TimeBasedTriggeringPolicy interval="1" modulate="true" />
|
|
|
|
</Policies>
|
|
|
|
</RollingFile>
|
|
|
|
<RollingFile name="LogToLogin"
|
|
|
|
filePattern="logs/login.%d{yyyy-MM-dd}.log"
|
|
|
|
immediateFlush="true">
|
|
|
|
<PatternLayout
|
|
|
|
pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%t] %c : %m%n" />
|
|
|
|
<Policies>
|
|
|
|
<TimeBasedTriggeringPolicy interval="1" modulate="true" />
|
|
|
|
</Policies>
|
|
|
|
</RollingFile>
|
|
|
|
</Appenders>
|
|
|
|
<Loggers>
|
|
|
|
<Logger name="not_found" level="info" additivity="false">
|
|
|
|
<AppenderRef ref="LogToConsole" />
|
|
|
|
</Logger>
|
|
|
|
<Logger name="ip_info" level="info" additivity="false">
|
|
|
|
<AppenderRef ref="LogToConsole" />
|
|
|
|
</Logger>
|
|
|
|
<Logger name="login" level="info" additivity="false">
|
|
|
|
<AppenderRef ref="LogToConsole" />
|
|
|
|
</Logger>
|
|
|
|
<Root level="info">
|
|
|
|
<AppenderRef ref="LogToConsole" />
|
|
|
|
</Root>
|
|
|
|
</Loggers>
|
|
|
|
</Configuration>
|