title: Play Logback only show class 'play.Logger$ALogger'
body: <p>I use the next <strong>Logback</strong> pattern into Play! Framework application:</p>
  
  <p>%d -[%level][%lo{0}]<strong>[%class]</strong>[%F:%L][%method]: %msg%n%ex{full}</p>
  
  <p>but always show as <strong>%class</strong>:</p>
  
  <p>[<strong>play.Logger$ALogger</strong>] or [<strong>play.api.LoggerLike$class</strong>]</p>
  
  <p>instead of the real class that use the logger.</p>
  
  <p>The full logger.xml file content is the next:</p>
  
  <p>
      </p>
  
  <pre><code>&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;!-- daily rollover --&gt;
          &lt;fileNamePattern&gt;${application.home}/logs/application.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
  
          &lt;!-- keep 30 days' worth of history --&gt;
          &lt;maxHistory&gt;30&lt;/maxHistory&gt;
      &lt;/rollingPolicy&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%d -[%level][%lo{0}][%class][%F:%L][%method]: %msg%n%ex{full}&lt;/pattern&gt;
          &lt;!--  &lt;pattern&gt; %d{HH:mm:ss.SSS} [%thread] %-5level %class{0} - %msg%n&lt;/pattern&gt; --&gt;
          &lt;outputPatternAsHeader&gt;true&lt;/outputPatternAsHeader&gt;
      &lt;/encoder&gt;
  &lt;/appender&gt;
  
  &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%coloredLevel %logger{15} - %message%n%xException{5}&lt;/pattern&gt;
      &lt;/encoder&gt;
  &lt;/appender&gt;
  
  
  &lt;logger name="play" level="INFO" /&gt;
  &lt;logger name="application" level="DEBUG" /&gt;
  
  &lt;root level="ERROR"&gt;
      &lt;appender-ref ref="STDOUT" /&gt;
      &lt;appender-ref ref="FILE" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p></p>
  
  <p>and several output examples are:</p>
  
  <p>2014-01-30 14:57:57,671 -[DEBUG][application][play.Logger$ALogger][Logger.java:332][debug]: DBClient:: isAlive: true</p>
  
  <p>2014-01-30 14:57:57,695 -[INFO][application][play.Logger$ALogger][Logger.java:361][info]: Applicaton started.</p>
  
  <p>2014-01-30 14:57:57,699 -[INFO][play][play.api.LoggerLike$class][Logger.scala:90][info]: Application started (Dev)</p>
  
  <p>Thanks!</p>