From: Andrzej Jan Taramina (andrzej@chaeron.com)
Date: Fri Feb 06 2004 - 05:41:59 PST
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@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
This archive was generated by hypermail 2.1.5 : Fri Feb 06 2004 - 05:48:06 PST