--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I continue to be stumped by this. I can't for the life of me figure out how to get akka actors to log with logback. The moment I added my logging.xml the akka log output was deafeningly silent. I tried the following:
<logger name="akka.event.slf4j.Slf4jLogger" level="DEBUG" additivity="false"> in logger.xml
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<configuration> <conversionRule conversionWord="coloredLevel" converterClass="play.api.Logger$ColoredLevel" /> <appender name="FILE" class="ch.qos.logback.core.FileAppender"> <file>${application.home}/logs/applicationmax.log</file> <encoder> <pattern>%date ---- [%level] - from %logger in %thread %n%message%n%xException%n</pattern> </encoder> </appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%coloredLevel %logger{15} - %message%n%xException{5}</pattern> </encoder> </appender> <logger name="play.akka" level="DEBUG" additivity="false"> <appender-ref ref="FILE"/> </logger> <logger name="play" level="DEBUG" /> <logger name="application" level="DEBUG" /> <root level="DEBUG"> <appender-ref ref="STDOUT" /> <appender-ref ref="FILE" /> </root> </configuration>akka { akka.loggers = [ "akka.event.slf4j.Slf4jLogger"] loglevel = DEBUG}final LoggingAdapter logger = Logging.getLogger(getContext().system(), getClass().getName());
logger.error("This is error");logger.debug("This is debug");logger.warning("This is warning");logger.info("This is info");[ERROR] [04/28/2014 22:54:22.384] [application-akka.actor.default-dispatcher-10] [actor.event.MeteringActor]This is error[DEBUG] [04/28/2014 22:54:22.384] [application-akka.actor.default-dispatcher-10] [actor.event.MeteringActor] This is debug[WARN] [04/28/2014 22:54:22.384] [application-akka.actor.default-dispatcher-10] [actor.event.MeteringActor] This is warning[INFO] [04/28/2014 22:54:22.384] [application-akka.actor.default-dispatcher-10] [actor.event.MeteringActor] This is info
<appender-ref ref="FILE"/><appender-ref ref="FILE"/> <logger name="[PACKAGE NAME]" level="DEBUG" />
<logger name="actor" level="DEBUG" /> <logger name="akka.event.slf4j.Slf4jLogger" level="DEBUG" additivity="false"> <appender-ref ref="FILE"/> </logger>akka { loggers = ["akka.event.slf4j.Slf4jLogger"] loglevel = "DEBUG" #This loglevel should match whats in logger.xml}
LoggingAdapter logger = Logging.getLogger(getContext().system(), this);