Hi Lionel,

You can make them inherit AbstractLogEnabled and give them the logger via setLogger(Logger logger) in a standard Avalon component, or from an XSP :

<xsp:logic>
    MyClass class = new MyClass();
    class.setLogger(getLogger());
</xsp:logic>

Note : the logger conf (category, level) is the one from the component giving the logger (from XSP it is something like sitemap.serverpages I think).

It's a little bit hacky, but it works

HTH
--
Olivier Billard

Lionel Crine wrote:
I'd like to use the getLogger() method in classes not declared in the sitemap.
Is is possible ?


thanks



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



Reply via email to