开发者

saxon-B trace listener control

开发者 https://www.devze.com 2023-02-19 00:08 出处:网络
To get tracing output from S开发者_JAVA技巧axon-B, you call something like: processor.getUnderlyingConfiguration().setTraceListener(new XSLTTraceListener());

To get tracing output from S开发者_JAVA技巧axon-B, you call something like:

processor.getUnderlyingConfiguration().setTraceListener(new XSLTTraceListener());

My question is, how dynamic is that? Once I've created an executable, does it capture this somehow, or can I change the listener on the fly and have it take effect?


You shouldn't really set the TraceListener on the Configuration, since it doesn't really make sense to use the same one for different transformations. Better to set it on the Controller. If you do that, then I suspect you can switch it at any time - but at your own risk, for example you won't get paired open() and close() calls.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号