Suppress Slf4jLogger started message?

781 views
Skip to first unread message

tigerfoot

unread,
Jun 18, 2014, 8:06:46 PM6/18/14
to akka...@googlegroups.com
Hello,

I'm using Slf4j (logback) and always get the following output on startup:

[test-akka.actor.default-dispatcher-4] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started

In my akka config I have these set:

akka.loglevel = "ERROR"
akka.stdout-loglevel = "ERROR"

In my logback.xml file I have set:

<configuration>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<root level="ERROR">  
<appender-ref ref="STDOUT" />
</root>
</configuration>


All other logging output is successfully filtered (ERROR only), but that initial INFO output is not.
Any way to suppress it?

Thanks,
Greg

Akka Team

unread,
Jun 20, 2014, 4:49:12 AM6/20/14
to Akka User List


--
>>>>>>>>>> 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+...@googlegroups.com.
To post to this group, send email to akka...@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 - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

Patrik Nordwall

unread,
Jun 23, 2014, 4:29:25 AM6/23/14
to akka...@googlegroups.com
That log entry is emitted by akka.event.slf4j.Slf4jLogger using SLFLoggerFactory.getLogger("akka.event.slf4j.Slf4jLogger").
That means that it should be using logback, but your output format indicates something else.

Are you sure that the logback.xml that you have listed is used when you run this?

/Patrik

Patrik Nordwall
Typesafe Reactive apps on the JVM
Twitter: @patriknw

Reply all
Reply to author
Forward
0 new messages