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

From: Alexander Peshkov (peshkov@renderx.com)
Date: Fri Feb 06 2004 - 00:35:34 PST

  • Next message: Andrzej Jan Taramina: "[xep-support] Re: How to turn on quiet mode with Cocoon Serializer?"

    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@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@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 - 00:44:43 PST