[xep-support] Re: How to turn on quiet mode with Cocoon Serializer?

Alexander Peshkov peshkov at renderx.com
Fri Feb 6 00:35:34 PST 2004


Hello Andrzej,

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.

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX

AJT> Gentlemen:

AJT> How can I turn on quiet mode, so that logging messages of the form:

>> (document
>> (validate [validation OK])
>> [system-id file:/g:/java/xml/xep-3_6_3/SAX.source]
AJT> etc...

AJT> do not get generated to my servlet container console when using the Cocoon 
AJT> interface?

AJT> I checked the documentation, but there doesn't seem to be any way mentioned 
AJT> to do this.

AJT> Thanks!

AJT> Andrzej Jan Taramina
AJT> Chaeron Corporation: Enterprise System Solutions
AJT> 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