Injecting loggers using @Inject

32 views
Skip to first unread message

Jochen Wiedmann

unread,
Dec 3, 2018, 11:25:14 AM12/3/18
to google-guice

Hi,

I have managed to create a TypeListener, and a MemberInjector, both of which are injecting loggers using a custom annotation @InjectLogger. So, that's fine. Except, that I wonder (after studying the docs at https://github.com/google/guice/wiki/CustomInjections#example-injecting-a-log4j-logger ), whether I couldn't use @Inject, rather than my own @InjectLogger?

Thanks,

Jochen

Matthew Madson

unread,
Dec 4, 2018, 6:00:49 PM12/4/18
to google-guice
Reply all
Reply to author
Forward
0 new messages