Re: [akka-user] Re: Akka logging, slf4j, logback question.

2015-06-01 Thread Akka Team
Hi,

I am not sure what is the cause for the problem you have. Can you try a
simple logging configuration first and isolate the problem further?

-Endre

On Sat, May 23, 2015 at 2:23 AM, TS test.tester1...@gmail.com wrote:

 I am using Akka 2.3.10,

 akka-slf4j_2.11 (2.3.10)

 and logback_classic (1.0.5)

 On Friday, May 22, 2015 at 5:18:18 PM UTC-7, TS wrote:

 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

   outputPatternAsHeadertrue/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 akka-user+unsubscr...@googlegroups.com.
 To post to this group, send email to akka-user@googlegroups.com.
 Visit this group at http://groups.google.com/group/akka-user.
 For more options, visit https://groups.google.com/d/optout.




-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Akka logging, slf4j, logback question.

2015-05-22 Thread TS
I am using Akka 2.3.10,  

akka-slf4j_2.11 (2.3.10)

and logback_classic (1.0.5)

On Friday, May 22, 2015 at 5:18:18 PM UTC-7, TS wrote:

 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

   outputPatternAsHeadertrue/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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.