Turning on Flying Saucer java.util.logging Output

2019-05-02 00:47发布

问题:

I'm compiling a PDF using iText and Flying Saucer, and unfortunately, I can't seem to get any output from Flying Saucer when compiling. I'd really like to be able to see what's going on internally so as to be able to debug the current problem I'm facing.

How can I turn on java.util.logging for Flying Saucer? I'm currently using SLF4J/Logback.

回答1:

Found it:

System.getProperties().setProperty("xr.util-logging.loggingEnabled", "true");
XRLog.setLoggingEnabled(true);