Yes, that's by design. The container is responsible for setting the
logger on its child as the first thing after instantiation by calling
enableLogging(Logger logger). See "Developing with Avalon" for the
complete lifecycle. Other keywords: Inversion of Control.

> I have a class that extends AbstractLogEnabled
> 
> public class ActionRunner
>     extends AbstractLogEnabled
>     implements Runnable {
> }
> 
> 
> bur when I attempt to use getLogger() it always returns an NPE. Is there any
> initialization that is required before I can use the logger feature.

Cheers,
Jeremias M�rki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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

Reply via email to