Hi all, Morisil,
a close friend of mine, Marco Speranza, and I developed Logger
injectors module for guice, sli4j[1], that supports the most popular
logging frameworks.
Hope this helps and alleviate your tasks.
All the best,
Simo

[1] http://sli4j.googlecode.com/svn/site/1.0/index.html

http://people.apache.org/~simonetripodi/



On Sat, Feb 20, 2010 at 1:11 PM, Stuart McCulloch <[email protected]> wrote:
> On 18 February 2010 22:01, morisil <[email protected]> wrote:
>>
>> Thanks to internal binding Guice injects java.util.logging.Logger
>> instances having the name of the target class. Is it possible to
>> configure something similar for log4j loggers?
>
> there's an example of this on the Guice wiki using custom injections:
>
>    http://code.google.com/p/google-guice/wiki/CustomInjections
>
> but you need to use your own binding annotation, such as @InjectLogger in
> that
> example, because custom injections don't apply to @Inject annotated members.
>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "google-guice" 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?hl=en.
>
> --
> Cheers, Stuart
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" 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?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" 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?hl=en.

Reply via email to