[xep-support] Trace output during rendering

David Tolpin dvd at renderx.com
Wed Apr 3 00:23:43 PST 2002


> 
> Hi David,
> 
> I have read paragraph #4 several times but I don't understand how to attach
> the custom document handler to the logger.
> This is what I have tried:

Eric,

my apologies, this is a bug in Driver.java. Method render(), when
called with three arguments, sets the handler to the default handler.
Calling it with four arguments does what you need.

render(parser,source,printer,new cusHandler());

or 

EventLogger.logger().setDocumentHandler(new cusHandler());
render(parser,source,printer,EventLogger.logger());

will set the handler correctly.

Please also not that the logger is bound to the current thread,
thus in a multithreaded application the handler must be set
in each thread.

Additionally, I'll send you a fixed version of Driver.java off-list.
A maintenance release will follow soon.

The interfaces will be changed from SAX1 to SAX2 in the next major release.

David Tolpin
-------------------
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