Michael:
Personally I would prefer that AbstractLogEnabled handled
this by throwing an IllegalStateException.
Cheers, Steve.

> -----Original Message-----
> From: Bachran, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 18 March, 2002 13:54
> To: Avalon-Dev (E-mail)
> Subject: ConsoleLogger inside AbstractLogEnabled (AbstractLoggable)
> 
> 
> Hi,
> 
> I got a question on the ConsoleLogger. When sometimes someone forgets to
> set/enable the logging in a component you have to spend some time 
> finding a
> NPE or getLogger() returning null might even affect the runtime behaviour
> (hopefully only during testing :-)). So my question is what you 
> think about
> initializing the logger member inside AbstractLogEnabled 
> (AbstractLoggable)
> with a ConsoleLogger so that getLogger() should never return null?
> 
> 
> Thanks, Michael
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to