Comment by aleksey....@gmail.com:

I have found a way to inject slf4j loggers via @Inject annotation. This way a little bit hacky, but it works and requires 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 google-guice-dev@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to