Comment by [email protected]:
I have found a way to inject slf4j loggers via @Inject annotation. This way
a little bit hacky, but it works and requres much less code :)
http://pastebin.com/3JGaVWie
All you need is to bind Logger to this Provider:
bind(Logger.class).toProvider(new Slf4jLoggerProvider?());
For more information:
http://code.google.com/p/google-guice/wiki/CustomInjections
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.