Search code examples
javasvgbatik

Disable logging with Batik Transcoder?


I'm using the batik transcoder for svgs, and every time I convert an SVG image, it produces output on standard out. I'm assuming it's using a logging package of some kind. How do I disable this output?


Solution

  • You can set a custom ErrorHandler on your transcoder object by calling setErrorHandler(). The default error handler spews messages like "ERROR: blah blah" to System.err.