Page 1 of 1

How to disable logging?

PostPosted: Thu Apr 27, 2017 1:36 am
by spoker
When I'm use docx4j, I have a lot of logs. Cuold you tell me please, how can I disable this logs?

Code: Select all
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 52 - Warning: inserting missing 'title' element
InputStream: Document content looks like HTML 2.0
2 warnings, no errors were found!
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 651 - Warning: inserting missing 'title' element
InputStream: Document content looks like HTML 2.0
2 warnings, no errors were found!

org.docx4j.org.xhtmlrenderer.load INFO:: SAX XMLReader in use (parser): org.apache.xerces.parsers.SAXParser
org.docx4j.org.xhtmlrenderer.load INFO:: SAX XMLReader in use (parser): org.apache.xerces.parsers.SAXParser
org.docx4j.org.xhtmlrenderer.load INFO:: SAX XMLReader in use (parser): org.apache.xerces.parsers.SAXParser
org.docx4j.org.xhtmlrenderer.load INFO:: SAX XMLReader in use (parser): org.apache.xerces.parsers.SAXParser
org.docx4j.org.xhtmlrenderer.load INFO:: SAX XMLReader in use (parser): org.apache.xerces.parsers.SAXParser
org.docx4j.org.xhtmlrenderer.load INFO:: SAX XMLReader in use (parser): org.apache.xerces.parsers.SAXParser
org.docx4j.org.xhtmlrenderer.load INFO:: Loaded document in ~90ms
org.docx4j.org.xhtmlrenderer.load INFO:: TIME: parse stylesheets  241ms
org.docx4j.org.xhtmlrenderer.match INFO:: media = print
org.docx4j.org.xhtmlrenderer.match INFO:: Matcher created with 137 selectors
org.docx4j.org.xhtmlrenderer.load INFO:: SAX XMLReader in use (parser): org.apache.xerces.parsers.SAXParser
org.docx4j.org.xhtmlrenderer.load INFO:: Loaded document in ~3ms
org.docx4j.org.xhtmlrenderer.load INFO:: TIME: parse stylesheets  0ms
org.docx4j.org.xhtmlrenderer.match INFO:: media = print
org.docx4j.org.xhtmlrenderer.match INFO:: Matcher created with 137 selectors

Re: How to disable logging?

PostPosted: Mon May 01, 2017 6:38 pm
by jason
Answered at http://stackoverflow.com/a/43715782/1031689

Please don't cross-post...