title: How do I output the class name in PlayFramework 2 Logging?
body: <p>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:</p>
  
  
  
  <pre><code>&lt;configuration&gt;
  &lt;appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;${application.home}/logs/application.log&lt;/file&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
          &lt;FileNamePattern&gt;${application.home}/logs/application.%d{yyyy-MM-dd}.log&lt;/FileNamePattern&gt;
      &lt;/rollingPolicy&gt;
  
      &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
          &lt;Pattern&gt;%-4relative [%thread] %-5level %logger{35} - %msg%n&lt;/Pattern&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  &lt;appender name="A1" class="ch.qos.logback.core.ConsoleAppender"&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%p %d{ISO8601} %c - %m%n&lt;/pattern&gt;
      &lt;/encoder&gt;
  &lt;/appender&gt;
  &lt;logger name="javax.faces" level="debug" /&gt;
  &lt;root level="info"&gt;
      &lt;appender-ref ref="A1" /&gt;
      &lt;appender-ref ref="FILE" /&gt;
  &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>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!</p>