Page 1 of 1

disable logging in docx4j

PostPosted: Mon Mar 11, 2013 8:14 pm
by eltayeb
Hello ,

i want to disable all logs in docx4j then i used Docx4jProperties.getProperties().setProperty("docx4j.Log4j.Configurator.disabled", "true") As first line in my main
and i still get all INFO logs started with
INFO org.docx4j.utils.Log4jConfigurator .configure line 45 - Since your log4j configuration (if any) was not found, docx4j has configured log4j automatically.

so and i put log4j.xml file in my app path and nothing is changed


Re: disable logging in docx4j

PostPosted: Tue Mar 12, 2013 2:35 am
by eltayeb
i use Logger.getRootLogger().setLevel(Level.ERROR);
as workaround