Akka logging to slf4j/log4j ?

659 views
Skip to first unread message

oschulz

unread,
Jul 2, 2010, 8:59:40 AM7/2/10
to Akka User List
Hi,

pardon me if this should be out of place here - I'm actually not quite
sure if it's an Akka or a configgy question:

Is it possibly to have Akka use slf4j or log4j for logging?

Since serveral of my dependencies use slf4j (or log4j), i can't really
switch to configgy
logging (and also I need to be able to configure different logging
levels for parts of my classpath).
Having seperate logs (configgy and log4j) is kinda inconvenient,
though ... ;-)

Sorry if I'm missing an obvious solution here (from what I've read,
Akka plays well with Lift,
but Lift also uses slf4j, doesn't it?)

Cheers,

Oliver

Jonas Bonér

unread,
Jul 2, 2010, 11:59:58 AM7/2/10
to akka...@googlegroups.com
I like configgy's API and we use it for configuration as well. And
Java Logging is something that is always available so no extra deps.

Best would be if configgy allowed plugging in another logging backend.
Don't know if they do that. Someone could perhaps patch it?

> --
> You received this message because you are subscribed to the Google Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
>
>

--
Jonas Bonér

work: http://jayway.com
code: http://akkasource.com
blog: http://jonasboner.com
twitter: @jboner

Viktor Klang

unread,
Jul 2, 2010, 12:24:18 PM7/2/10
to akka...@googlegroups.com
I second that
Viktor Klang
| "A complex system that works is invariably
| found to have evolved from a simple system
| that worked." - John Gall

Akka - the Actor Kernel: Akkasource.org
Twttr: twitter.com/viktorklang

oschulz

unread,
Jul 3, 2010, 6:25:45 PM7/3/10
to Akka User List
Re-reading my post, I was being a bit unclear, sorry.

I had searched for ways to use slf4j or log4j as a backend
for configgy, but had not been sucessful - that why I
hoped someone here would say, oh, that's easy, just
do ... or that Akka already provided a way to plug
in different logging systems.

I certainly wouldn't propose to switch Akka from
configgy to slf4j or log4j to fulfill the specific
needs of my project! :-)


Cheers,

Oliver
Reply all
Reply to author
Forward
0 new messages