Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simon04/510117db931e159891f9 to your computer and use it in GitHub Desktop.
Save simon04/510117db931e159891f9 to your computer and use it in GitHub Desktop.
Getting rid of "INFO: None-ODF attribute created for …"

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

@paivacwb
Copy link

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);

@bus4
Copy link

bus4 commented Nov 7, 2021

Also in Spring boot you can add property:
logging.level.org.odftoolkit=WARN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment