Hi Adam,

I'm not sure that I understand your question completely.

Akka can use slf4j as a backend for akka logging. Akka does not provide a 
generic slf4 backend that uses an akka actor system.

In your akka code you can use akka logging and in your other code you can use 
slf4j, and the logging can be combined with the help of the akka-slf4j mdoule.

B/

On 22 June 2014 at 10:01:52, Adam ([email protected]) wrote:

Hi,

I've read thorough the instructions under the logging chapter of the Akka 
manual(Java API in this case) and it seems like what it requires is directly 
using the akka.event.Logging and akka.event.LoggingAdapter classes.
(BTW Suspecting I might have missed something in the documentation, I looked 
for a StaticLoggerBinder class inside the akk-slf4j jar, but couldn't find one.)

So I'm wondering if there's a way to avoid this and only use the SLF4J API.
My motivation for doing this is:
I'll have a single logging API used throughout the application
SLF4J actual implementation can be replaced more easily than when having Akka 
hard-coded everywhere.
Other parts of the application which may not even be aware of running inside an 
Akka actor system and are already using the SLF4J API, will automatically be 
switched to using the AKKA implementation.
As it currently stands I can only make parts of the application use Akka 
logging, while other parts will use some other logging framework's asynchronous 
logging and all which that entails (extra threads, locks, etc.)





--
>>>>>>>>>> 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.
-- 
Björn Antonsson
Typesafe – Reactive Apps on the JVM
twitter: @bantonsson

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