Rohan Sircar
cb9524eac7
Rewrote slick db service using monix task instead of future Added cats IO to controller to make use of above db service Added action methods that support effect wrappers other than future Added play-flyway to auto-manage migrations Moved migration files to appropriate directory as a result of above Added cors filter to work with separately hosted frontend Made logger log at debug
42 lines
1.3 KiB
XML
42 lines
1.3 KiB
XML
<configuration>
|
|
|
|
<conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />
|
|
|
|
<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>
|
|
<pattern>%date{HH:mm:ss.SSS} %thread %coloredLevel %logger{15} - %message%n%xException{10}</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
<appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender">
|
|
<appender-ref ref="FILE" />
|
|
</appender>
|
|
|
|
<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
|
|
<appender-ref ref="STDOUT" />
|
|
</appender>
|
|
|
|
<logger name="play" level="DEBUG" />
|
|
<logger name="application" level="DEBUG" />
|
|
|
|
<!-- Useful debugging settings in slick -->
|
|
<logger name="slick.jdbc.JdbcBackend.statement" level="INFO" />
|
|
<logger name="slick.jdbc.JdbcBackend.benchmark" level="INFO" />
|
|
<logger name="com.zaxxer.hikari" level="INFO" />
|
|
|
|
<logger name="controllers" level="DEBUG" />
|
|
|
|
<root level="INFO">
|
|
<appender-ref ref="ASYNCFILE" />
|
|
<appender-ref ref="ASYNCSTDOUT" />
|
|
</root>
|
|
|
|
</configuration>
|