Reasons why Logback is recommended for Akka logging

546 views
Skip to first unread message

Martin Ford

unread,
Feb 23, 2015, 6:40:04 AM2/23/15
to akka...@googlegroups.com
Hi,

In the Akka documentation Typesafe recommend using Logback as the runtime SLF4J backend logger. I'm just wondering what the reasons are for that recommendation? Can anyone enlighten me?

Many thanks

Martin

Reid Spencer

unread,
Feb 23, 2015, 4:22:37 PM2/23/15
to akka...@googlegroups.com
Because it is "good" ?  :)  The author of LOG4J started over and created Logback with several key performance improvements and additional flexibility. 

Steve Fosdal

unread,
Feb 23, 2015, 4:41:50 PM2/23/15
to akka...@googlegroups.com
Anyone have any feedback after trying Log4J v2 with akka?
-Steve

Will Sargent

unread,
Feb 23, 2015, 9:25:01 PM2/23/15
to akka...@googlegroups.com
The only thing I know about Log4J 2 is that if you use the asyncappender, it is fast.


However, if you use the Logback asyncappender, it is also fast.


A logging framework has to implement SLF4J and not be a bottleneck -- Play and Akka use logback and it works fine.


Will Sargent
Consultant, Professional Services
Typesafe, the company behind Play Framework, Akka and Scala

--
>>>>>>>>>> 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.

monika singhal

unread,
May 21, 2015, 3:55:22 AM5/21/15
to akka...@googlegroups.com
Anyone tried log4j2 with Akka ?

Thanks,
Monika


Patrik Nordwall

unread,
May 21, 2015, 4:13:41 AM5/21/15
to akka...@googlegroups.com
I have not tried it, but here is something that you might find useful: https://github.com/hseeberger/akka-log4j

An alternative is to use log4j2 with the slf4j binding and the Akka slf4j logger.

/Patrik

--
>>>>>>>>>> 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.



--

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

Adam

unread,
May 21, 2015, 2:40:43 PM5/21/15
to akka...@googlegroups.com
Hi,

Where I work, we're using Akka with log4j2 (through slf4j binding) in production.
We're handling billions of daily requests and so far it works flawlessly :-)

monika singhal

unread,
May 22, 2015, 4:26:44 AM5/22/15
to akka...@googlegroups.com
Thanks a lot  Adam  , even i tried creating a sample project to check feasibility of log4j 2 with akka it works .

--
>>>>>>>>>> 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 a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/K28zaXJjy68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

monika singhal

unread,
May 22, 2015, 4:27:01 AM5/22/15
to akka...@googlegroups.com
Thanks patrick for the input .

You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/K28zaXJjy68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

何品

unread,
May 22, 2015, 4:29:13 AM5/22/15
to akka...@googlegroups.com
We are using log4j2.


在 2015年2月23日星期一 UTC+8下午7:40:04,Martin Ford写道:
Reply all
Reply to author
Forward
0 new messages