164 lines
8.1 KiB
XML
164 lines
8.1 KiB
XML
<configuration>
|
|
|
|
<conversionRule conversionWord="coloredLevel" converterClass="play.api.Logger$ColoredLevel" />
|
|
|
|
<!-- STDOUT that accepts WARN and ERROR -->
|
|
<!-- Exceptions yes, stacktraces no -->
|
|
<appender name="STDOUT_WARN" class="ch.qos.logback.core.ConsoleAppender">
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"><level>WARN</level></filter>
|
|
<encoder><pattern>%-5level %logger{30} - %message%n%xException{0}</pattern></encoder>
|
|
</appender>
|
|
|
|
<!-- STDOUT that accepts INFO and above -->
|
|
<appender name="STDOUT_INFO" class="ch.qos.logback.core.ConsoleAppender">
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"><level>INFO</level></filter>
|
|
<encoder><pattern>%-5level %logger{30} - %message%n%xException{0}</pattern></encoder>
|
|
</appender>
|
|
|
|
<!-- File where every INFO and above is written -->
|
|
<appender name="ALL_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"><level>INFO</level></filter>
|
|
<file>/var/log/lichess/all.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException{30}</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/all-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>14</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
|
|
<!-- Asynchronously write to the above file -->
|
|
<appender name="ASYNC_ALL_FILE" class="ch.qos.logback.classic.AsyncAppender">
|
|
<appender-ref ref="ALL_FILE" />
|
|
</appender>
|
|
|
|
<!-- By default, write WARNs in STDOUT, and INFOs in the ALL file -->
|
|
<root level="INFO">
|
|
<appender-ref ref="ASYNC_ALL_FILE" />
|
|
<appender-ref ref="STDOUT_WARN" />
|
|
</root>
|
|
|
|
<logger name="boot" level="INFO"><appender-ref ref="STDOUT_INFO" /></logger>
|
|
<logger name="play" level="INFO"><appender-ref ref="STDOUT_INFO" /></logger>
|
|
<logger name="akka" level="INFO"><appender-ref ref="STDOUT_INFO" /></logger>
|
|
<logger name="reactivemongo" level="INFO"><appender-ref ref="STDOUT_INFO" /></logger>
|
|
|
|
<!-- Distinct files for relevant loggers -->
|
|
<!-- <logger name="timer" level="DEBUG"> -->
|
|
<!-- <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> -->
|
|
<!-- <file>/var/log/lichess/timer.log</file> -->
|
|
<!-- <encoder><pattern>%date %-5level %message%n%xException</pattern></encoder> -->
|
|
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> -->
|
|
<!-- <fileNamePattern>/var/log/lichess/timer-log-%d{yyyy-MM-dd}.gz</fileNamePattern> -->
|
|
<!-- <maxHistory>7</maxHistory> -->
|
|
<!-- </rollingPolicy> -->
|
|
<!-- </appender> -->
|
|
<!-- </logger> -->
|
|
<!-- <logger name="autoanalyse" level="DEBUG"> -->
|
|
<!-- <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> -->
|
|
<!-- <file>/var/log/lichess/autoanalyse.log</file> -->
|
|
<!-- <encoder><pattern>%date %-5level %message%n%xException</pattern></encoder> -->
|
|
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> -->
|
|
<!-- <fileNamePattern>/var/log/lichess/autoanalyse-log-%d{yyyy-MM-dd}.gz</fileNamePattern> -->
|
|
<!-- <maxHistory>7</maxHistory> -->
|
|
<!-- </rollingPolicy> -->
|
|
<!-- </appender> -->
|
|
<!-- </logger> -->
|
|
<logger name="lobby" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/lobby.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/lobby-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="pool" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/pool.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/pool-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="tournament" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/tournament.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/tournament-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="ratelimit" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/ratelimit.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/ratelimit-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="round" level="ERROR">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/round.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException{3}</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/round-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="cheat" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/cheat.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/cheat-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="fishnet" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/fishnet.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/fishnet-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="plan" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/plan.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/plan-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>365</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
<logger name="csrf" level="DEBUG">
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/var/log/lichess/csrf.log</file>
|
|
<encoder><pattern>%date %-5level %logger{30} %message%n%xException</pattern></encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>/var/log/lichess/csrf-log-%d{yyyy-MM-dd}.gz</fileNamePattern>
|
|
<maxHistory>7</maxHistory>
|
|
</rollingPolicy>
|
|
</appender>
|
|
</logger>
|
|
|
|
<!-- Set a specific actor to DEBUG -->
|
|
<!-- <logger name="actors.MyActor" level="DEBUG" /> -->
|
|
|
|
<!-- Avoid "HTTP header is larger than 4096 bytes." messages -->
|
|
<logger name="play.core.server.netty.PlayDefaultUpstreamHandler" level="ERROR" />
|
|
|
|
</configuration>
|