-
Notifications
You must be signed in to change notification settings - Fork 315
/
logback.xml
39 lines (35 loc) · 1.74 KB
/
logback.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<configuration>
<conversionRule conversionWord="coloredLevel" converterClass="play.api.Logger$ColoredLevel" />
<!-- WRITE LOG TO FILE -->
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${application.home}/logs/application.log</file>
<encoder>
<pattern>%20.-20logger{20} | %d{"dd/MM/YY HH:mm:ss"} | %5Level | %message%n%xException{5}</pattern>
</encoder>
</appender>
<!-- WRITE LOG TO CONSOLE -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<!-- FORMAT: APP | DATE | [LEVEL] LOG_MESSAGE -->
<pattern>%cyan(%20.-20logger{20}) | %d{"dd/MM/YY HH:mm:ss"} | %highlight(%-5level) | %message%n%xException{5}</pattern>
</encoder>
</appender>
<!-- LOG LEVELS -->
<logger name="play" level="ERROR" />
<logger name="utils.LOG" level="DEBUG" />
<!-- PLAY ROOT LEVEL -->
<root level="ERROR">
<!-- INFO: Logging everything to output (not files), as stdout it can be redirected to a file anyway.
We periodically trim that file to curb its size.
One could write ERROR to files as well, but uncommenting the below, but will have to manage
that file size too.
-->
<!-- <appender-ref ref="FILE" />-->
<appender-ref ref="STDOUT" />
</root>
<!-- Off these ones as they are annoying, and anyway we manage configuration ourself -->
<logger name="com.avaje.ebean.config.PropertyMapLoader" level="OFF" />
<logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="OFF" />
<logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="OFF" />
<logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF" />
</configuration>