I setup a logging.xml file as shown below. This file includes output to the console as well as a rolling file which gets a new file for everyday:
<configuration>
<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">
<FileNamePattern>${application.home}/logs/application.%d{yyyy-MM-dd}.log</FileNamePattern>
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</layout>
</appender>
<appender name="A1" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%p %d{ISO8601} %c - %m%n</pattern>
</encoder>
</appender>
<logger name="javax.faces" level="debug" />
<root level="info">
<appender-ref ref="A1" />
<appender-ref ref="FILE" />
</root>
</configuration>
My question with this is how do I output the class name as well? I tried reading the Play documentation and could not find the answer to that... It's very hard in a production environment to not see classnames as well. Thanks for the help!