[xep-support] Re: How to turn on quiet mode with Cocoon Serializer?
Andrzej Jan Taramina
andrzej at chaeron.com
Fri Feb 6 05:41:59 PST 2004
Alex:
> To suppress all diagnostic messages in XEP 3.6 you have to set "dumb"
> ContentHandler for logger like this:
>
> // Select a noop ContentHandler for the logger to suppress logging
> com.renderx.xep.lib.EventLogger logger =
> com.renderx.xep.lib.EventLogger.logger();
> logger.setContentHandler(new
> org.xml.sax.helpers.DefaultHandler());
>
> With the new API introduced in XEP 3.7 it's enough to pass 'null'
> instead of the logger when creating FormatterImpl:
>
> xep = new com.renderx.xep.FormatterImpl(options, null);
>
> In both versions this technic demonstrated in PageCount sample.
But how would I set the logging to only show error messages (and no
warnings/info messages)? The above example would seem to suppress ALL
logging messages, but errors I would still want logged.
Any examples/advice on how to route such error messages through a logging
framework such as Log4J or LogKit (which is used by the rest of our
application)?
Thanks!
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list