This content has been marked as final. 
    
Show                 5 replies
    
- 
        1. Re: multiple @Logger annotations in one classgavin.king Feb 4, 2007 1:37 AM (in response to raghinii)Nope, this is not supported. 
- 
        2. Re: multiple @Logger annotations in one classraghinii Feb 4, 2007 11:22 PM (in response to raghinii)is there anything wrong with attaching a logger as static member like so ? @Logger private Log log; private static Log authLog = Logging.getLog("LoginLog");
 would it be better to attach it as an instance member ?
- 
        3. Re: multiple @Logger annotations in one classgavin.king Feb 4, 2007 11:39 PM (in response to raghinii)The intended use is as an instvar. 
 But actually I could implement "static injection" of the logger object ... and perhaps I will go do that now...
- 
        4. Re: multiple @Logger annotations in one classgavin.king Feb 5, 2007 12:08 AM (in response to raghinii)Oh I misread. Logging.getLog() should work fine. 
 Oh and I implemented startup-time injection into static fields. And yes, you can have as many of them as you like (as long as they are static) :-)
- 
        5. Re: multiple @Logger annotations in one classraghinii Feb 5, 2007 10:41 AM (in response to raghinii)excellent. 
 thanks.
 
    