title: Play fails to load custom log back appender
body: <p>I have created a custom logback appender. But play gives a ClassNotFound exception for the appender.</p>
  
  <p>Following is my appender</p>
  
  <pre><code>package log
  
  import ch.qos.logback.core.AppenderBase
  import ch.qos.logback.core.UnsynchronizedAppenderBase
  import ch.qos.logback.core.spi.ContextAwareBase
  import log.model.LogMessage
  import data.OrganizationDao
  import log.dao.LogDao
  import ch.qos.logback.core.status.Status
  
  class MongoAppender extends ContextAwareBase {
    private def add(level:Int, msg: String, ex: Throwable) = {
      val message = ex match {
        case null =&gt; LogMessage(None, level, msg, null, null, new Array[String](0))
        case _ =&gt; LogMessage(None, level, msg, ex.getClass().getName(), ex.getMessage(), new Array[String](0))
      }
  
      LogDao.save(message)
  
    }
    override def addStatus(status:Status) = {
      add(status.getLevel(), status.getMessage(), status.getThrowable())
    }
  
  }
  </code></pre>
  
  <p>The following is my logger.xml</p>
  
  <pre><code>&lt;configuration&gt;
  
      &lt;conversionRule conversionWord="coloredLevel"
          converterClass="play.api.Logger$ColoredLevel" /&gt;
  
      &lt;appender name="Mongo" class="log.MongoAppender"&gt;
  
      &lt;/appender&gt;
  
  
  
      &lt;logger name="play" level="INFO" /&gt;
      &lt;logger name="application" level="INFO" /&gt;
  
      &lt;root level="ERROR"&gt;
          &lt;appender-ref ref="Mongo" /&gt;
      &lt;/root&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I am getting the following stacktrace</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: log.MongoAppender
          at      at java.net.URLClassLoader$1.run(Unknown Source)
          at      at java.net.URLClassLoader$1.run(Unknown Source)
          at      at java.security.AccessController.doPrivileged(Native Method)
          at      at java.net.URLClassLoader.findClass(Unknown Source)
          at      at java.lang.ClassLoader.loadClass(Unknown Source)
          at      at java.lang.ClassLoader.loadClass(Unknown Source)
          at      at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameA
  ndParameter(OptionHelper.java:60)
  </code></pre>
  
  <p>I have checked that the appender class does compile and also checked the compiled byte code. Why does not play pick it up?</p>