Skip to content

Instantly share code, notes, and snippets.

@saml
Created January 31, 2013 17:47
Show Gist options
  • Save saml/4684745 to your computer and use it in GitHub Desktop.
Save saml/4684745 to your computer and use it in GitHub Desktop.
play framework logger configuration
<configuration>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${application.home}/logs/application.log</file>
<encoder>
<pattern>%date %level %message%n%throwable{full}</pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date %level %message%n%throwable{full}</pattern>
</encoder>
</appender>
<root>
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
</root>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment