title: PlayFramework Logback printing caller class name
body: <p>I am using Play 2.1 (Java) and the default logback (1.0.7) logger that comes with Play. In one of my controller I'm using "play.Logger" to print a debug log message. Despite mentioning "<code>%class</code>" in the logger.xml, the caller class name is not getting printed. Rather "<code>play.Logger$ALogger</code>" is getting printed. I debugged till logback's <code>ch.qos.logback.classic.spi.CallerData</code> where it returns the stacktrace as an array to identify the caller class. In the array, my caller controller class is at the bottom of the array while at the top is the "<code>play.Logger.ALogger</code>" item and that's what is used in "<code>ch.qos.logback.classic.pattern.ClassOfCallerConverter</code>" to print the class <code>name(cda[0].getClassName())</code>.</p>
  
  <p>I did look at other similar threads <a href="https://stackoverflow.com/questions/11094048/how-do-i-output-the-class-name-in-playframework-2-logging">here</a> and <a href="https://stackoverflow.com/questions/15258144/how-do-i-configure-logback-to-print-out-the-class-name">here</a> but they don't seem to fix this.</p>
  
  <p>Here's my XML</p>
  
  <pre><code>&lt;appender name="FILE_DEBUG" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;${application.home}/logs/debug_log.log&lt;/file&gt;
      &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
          &lt;pattern&gt;%date - [%level] - from %logger %class in %thread %n%message%n%xException%n&lt;/pattern&gt;
      &lt;/layout&gt;
      &lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&gt;
          &lt;level&gt;DEBUG&lt;/level&gt;
      &lt;/filter&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
          &lt;fileNamePattern&gt;${application.home}/logs/debug_log.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
          &lt;maxHistory&gt;30&lt;/maxHistory&gt;
      &lt;/rollingPolicy&gt;
  &lt;/appender&gt;
  </code></pre>
  
  <p>Am I missing something?</p>