Page 1 of 1

how to TURN OFF log4j debug level logging for XSLFO

PostPosted: Tue Sep 24, 2013 12:38 am
by prra1mst
I try to convert word document to PDF using Docx4j in my webapplication

but I get this message in the generated pdf

TO HIDE THESE MESSAGES, TURN OFF log4j debug level logging for
org.docx4j.convert.out.pdf.viaXSLFO

I tried this http://stackoverflow.com/a/10116302/2682652configuring, but nothing changes. could someone help me how to fix this issue(turn off the log4j debug level logging for XSLFO)

thanks in advance

Re: how to TURN OFF log4j debug level logging for XSLFO

PostPosted: Tue Sep 24, 2013 8:39 am
by jason
If you want to use docx4j.properties, that file will need to be on your classpath.

If you want to do it via log4j.xml, log4j.xml needs to be on your classpath.

Even (especially) for a basic question like this, you should tell us what version of docx4j, and more about the environment in which docx4j is being invoked (are you running in some IDE, an app server, via the command line (what is it)? )

Re: how to TURN OFF log4j debug level logging for XSLFO

PostPosted: Mon Sep 30, 2013 8:18 am
by jason
to put the src/main/resources dir on your classpath, either add it as a source folder, or in your run configuration, specifically add it (classpath tab, "advanced" button)

Re: how to TURN OFF log4j debug level logging for XSLFO

PostPosted: Mon Sep 30, 2013 10:51 pm
by prra1mst
Thanks jason
I didnt placed the docx4j.properties in correct classpath
now it works fine
thank you