I tried to get rid of the following messages by the Apache odfdom library.
Aug 20, 2014 8:55:45 AM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfAttribute
INFO: None-ODF attribute created for calcext:value-type
Strangely, this did not work out …
java.util.logging.Logger.getLogger("org.odftoolkit").setLevel(java.util.logging.Level.WARNING);
I ended up with the following which workes nicely …
java.util.logging.LogManager.getLogManager().readConfiguration(
new java.io.ByteArrayInputStream("org.odftoolkit.level=WARNING".getBytes(java.nio.charset.StandardCharsets.UTF_8)));
Here's a relevant StackOverflow thread: http://stackoverflow.com/questions/470430/java-util-logging-logger-doesnt-respect-java-util-logging-level
Hello, u can put this in your code before generate the doc:
final Logger app = Logger.getLogger("org.odftoolkit.odfdom.pkg.OdfXMLFactory");
app.setLevel(Level.WARNING);