i've switched most handlers to use context logging but several
ExtensibleHandlers log within

   void wireExtensions(Class interfaceName, List extension) throws
WiringException;

for example see [1]

one option would be revise the API so that a log is passed in (either
directly or indirectly) but i'm open to other ideas

-robert

[1]
    public void wireExtensions(Class interfaceName, List extension)
throws WiringException {
        if (MessageHook.class.equals(interfaceName)) {
            this.messageHandlers = extension;
            if (messageHandlers.size() == 0) {
                if (getLogger().isErrorEnabled()) {
                    getLogger().error(
                                    "No messageHandler configured.
Check that SendMailHandler is configured in the SMTPHandlerChain");
                }
                throw new WiringException("No messageHandler configured");
            }
        } else if (HookResultHook.class.equals(interfaceName)) {
            this.rHooks = extension;
        }
    }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to