|
|
@ -3,8 +3,18 @@ |
|
|
|
|
|
|
|
<conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" /> |
|
|
|
|
|
|
|
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> |
|
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
|
|
<file>${application.home:-.}/logs/application.log</file> |
|
|
|
|
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
|
|
|
<!-- daily rollover --> |
|
|
|
<fileNamePattern>${application.home:-.}/logs/application.%d{yyyy-MM-dd}.log</fileNamePattern> |
|
|
|
|
|
|
|
<!-- keep 30 days' worth of history capped at 3GB total size --> |
|
|
|
<maxHistory>30</maxHistory> |
|
|
|
<totalSizeCap>3GB</totalSizeCap> |
|
|
|
</rollingPolicy> |
|
|
|
|
|
|
|
<encoder> |
|
|
|
<pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern> |
|
|
|
</encoder> |
|
|
|