I have setup Akka logging and using logback with slf4j. 

Everything works fine except that I do not see WARNING's (I see INFO, 
DEBUG, ERROR) 

This is a logback config issue.. I also noticed when the error is 
highlighted (bold font) the font stays bold for all other levels. Is there 
a way to turn it off?

*application.conf*

akka {

  loggers = ["akka.event.slf4j.Slf4jLogger"]

  loglevel = "DEBUG"

  stdout-loglevel = "INFO"

  logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"

 ....

}

*In Java file..*

private LoggingAdapter log = Logging.getLogger(getContext().system(), this);

log.info("Test Info") // ok can see it on screen

log.debug("Test debug") // ok can see it on screen

log.error("Test error") // bold.. ok can see it on screen

log.warning("Test warning") // nok.. cannot see it on screen

*Logback.xml*

<?xml version="1.0" encoding="utf-8"?>

<configuration scan="true" scanPeriod="300 seconds">

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">

    <!-- encoders are assigned the type

         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default

         See http://logback.qos.ch/manual/layouts.html -->

    <encoder>

      <pattern>%date%highlight(%-5level)%thread%logger{10}: %msg%n</pattern>

      <outputPatternAsHeader>true</outputPatternAsHeader>

    </encoder>

  </appender>

  <logger name="mypackage" level="DEBUG" />

  <logger name="akka" level="INFO" />

  

  <root level="INFO">

    <appender-ref ref="STDOUT" />

  </root>

</configuration>


-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to