2020-05-16 10:10:23 +00:00
|
|
|
<configuration>
|
|
|
|
|
2020-08-22 10:48:11 +00:00
|
|
|
<conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />
|
2020-05-16 10:10:23 +00:00
|
|
|
|
|
|
|
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
|
|
|
<file>${application.home:-.}/logs/application.log</file>
|
|
|
|
<encoder>
|
|
|
|
<pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern>
|
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|
|
|
<encoder>
|
2020-08-22 10:48:11 +00:00
|
|
|
<pattern>%date{HH:mm:ss.SSS} %thread %coloredLevel %logger{15} - %message%n%xException{10}</pattern>
|
2020-05-16 10:10:23 +00:00
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
<appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender">
|
2020-08-22 10:48:11 +00:00
|
|
|
<appender-ref ref="FILE" />
|
2020-05-16 10:10:23 +00:00
|
|
|
</appender>
|
|
|
|
|
|
|
|
<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
|
2020-08-22 10:48:11 +00:00
|
|
|
<appender-ref ref="STDOUT" />
|
2020-05-16 10:10:23 +00:00
|
|
|
</appender>
|
|
|
|
|
2020-08-22 10:48:11 +00:00
|
|
|
<logger name="play" level="DEBUG" />
|
|
|
|
<logger name="application" level="DEBUG" />
|
2020-05-16 10:10:23 +00:00
|
|
|
|
|
|
|
<!-- Useful debugging settings in slick -->
|
2020-08-22 10:48:11 +00:00
|
|
|
<logger name="slick.jdbc.JdbcBackend.statement" level="INFO" />
|
|
|
|
<logger name="slick.jdbc.JdbcBackend.benchmark" level="INFO" />
|
|
|
|
<logger name="com.zaxxer.hikari" level="INFO" />
|
2020-05-16 10:10:23 +00:00
|
|
|
|
2020-08-22 10:48:11 +00:00
|
|
|
<logger name="controllers" level="DEBUG" />
|
|
|
|
|
|
|
|
<root level="INFO">
|
|
|
|
<appender-ref ref="ASYNCFILE" />
|
|
|
|
<appender-ref ref="ASYNCSTDOUT" />
|
2020-05-16 10:10:23 +00:00
|
|
|
</root>
|
|
|
|
|
|
|
|
</configuration>
|