Wrt inclusion in Akka: I don’t want to use SLF4J/Lockback, but Log4j 2! --
Heiko Seeberger Home: heikoseeberger.de <http://heikoseeberger.de/> Twitter: @hseeberger <https://twitter.com/hseeberger> Public key: keybase.io/hseeberger <https://keybase.io/hseeberger> > On 31 Mar 2016, at 12:43, Patrik Nordwall <[email protected]> wrote: > > Sounds interesting. I will take a look, but no time this week. > Regards, > Patrik > > On Fri, Mar 25, 2016 at 7:42 PM, Pedro Larroy <[email protected] > <mailto:[email protected]>> wrote: > Hi there > > I have been often frustrated by trying to combine traits that would use an > slf4j logger inside Akka. First because if you mix ActorLogging the "log" is > not compatibe with Slf4j Logger. > > Second because if you use Slf4j logging inside your libraries and utilities, > it will block your actors. So it's a conundrum to have reusable components > that need to log which you might want to use with or without Akka. > > I don't want my lower level components to depend on Akka or have an implicit > actorsystem around just to log, but I want logging to be piped through Akka > when I used them inside an Akka actor. > > For that I have put together a small library that makes it very easy to use > an Slf4j Adapter which will work both with Akka and with the normal Slf4j / > logback without Akka. > > You can find it here: > > https://github.com/larroy/SLF4J_Akka_logging_adapter > <https://github.com/larroy/SLF4J_Akka_logging_adapter> > > Let me know what you think. > > I also think it would be great if one day it could be included in Akka, I > don't believe I'm the only one with this problem. > > Pedro. > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> > >>>>>>>>>> Check the FAQ: > >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > >>>>>>>>>> <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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/akka-user > <https://groups.google.com/group/akka-user>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > > -- > > Patrik Nordwall > Akka Tech Lead > Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM > Twitter: @patriknw > > <http://www.lightbend.com/> > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> > >>>>>>>>>> Check the FAQ: > >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > >>>>>>>>>> <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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/akka-user > <https://groups.google.com/group/akka-user>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
