title: Why isn't my akka logging working inside of play
body: <p>My logging is working fine from within my play code, but the akka code I have isn't logging to file/stdout.</p>
  
  <pre><code>class EmailActor extends Actor with ActorLogging {
    import EmailActor._
  
    log.info("email actor hatched..")
  ...
  }
  </code></pre>
  
  <p>When I create this actor I don't see the logging entries in either the log file or stdout.</p>
  
  <p>I have the default application.conf from this activator template: <a href="https://github.com/playframework/play-scala/blob/master/conf/logback.xml" rel="nofollow noreferrer">https://github.com/playframework/play-scala/blob/master/conf/logback.xml</a></p>
  
  <p>Do I need to modify my logback file with some akka label?</p>
  
  <p><b>Update</b></p>
  
  <p>I have done this now in my application.conf:</p>
  
  <pre><code>akka {
    loggers = ["akka.event.slf4j.Slf4jLogger"]
    #loggers = ["akka.event.Logging$DefaultLogger"]
  
    loglevel = "DEBUG"
    logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
  
    actor {
      debug {
        lifecycle = on
      }
    }
  }
  </code></pre>
  
  <p>In my dependencies I have added this (and are both added to my play app's dep):</p>
  
  <pre><code>val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % Version.akkaSlf4j
  val logback = "ch.qos.logback" % "logback-classic" % Version.logback
  </code></pre>
  
  <p>My logback.xml looks like:</p>
  
  <pre><code>&lt;!-- https://www.playframework.com/documentation/latest/SettingsLogger --&gt;
  &lt;configuration&gt;
  
    &lt;conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" /&gt;
  
    &lt;appender name="FILE" class="ch.qos.logback.core.FileAppender"&gt;
      &lt;file&gt;${application.home:-.}/logs/application.log&lt;/file&gt;
      &lt;encoder&gt;
        &lt;pattern&gt;%date [%level] from %logger in %thread - %message%n%xException&lt;/pattern&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{10}&lt;/pattern&gt;
      &lt;/encoder&gt;
    &lt;/appender&gt;
  
    &lt;appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender"&gt;
      &lt;appender-ref ref="FILE" /&gt;
    &lt;/appender&gt;
  
    &lt;appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender"&gt;
      &lt;appender-ref ref="STDOUT" /&gt;
    &lt;/appender&gt;
  
    &lt;logger name="play" level="INFO" /&gt;
    &lt;logger name="application" level="DEBUG" /&gt;
  
    &lt;!-- Off these ones as they are annoying, and anyway we manage configuration ourselves --&gt;
    &lt;logger name="com.avaje.ebean.config.PropertyMapLoader" level="OFF" /&gt;
    &lt;logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="OFF" /&gt;
    &lt;logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="OFF" /&gt;
    &lt;logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF" /&gt;
  
    &lt;root level="WARN"&gt;
      &lt;appender-ref ref="ASYNCFILE" /&gt;
      &lt;appender-ref ref="ASYNCSTDOUT" /&gt;
    &lt;/root&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I do not see any akka related logs in STDOUT or in my log files that I create using the ActorLogging log method.</p>