Page 1 of 1

Suppress docx4j info and warn output to stderr?

PostPosted: Sat Dec 16, 2017 4:20 am
by dwilcoxen
I must be missing something. I have an application using docx4j and it persists in writing info and warn level messages to stderr during a data binding operation. I just want to turn it all off. I've tried this in the log4j.xml file:

<logger name="org.docx4j" level="error" additivity="false">
<AppenderRef ref="Console"/>
</logger>

But all level messages keep pouring out. The other developers on my team are yelling at me because their Eclipse console fills up with this stuff. :D Is there any way to turn them off?

Thanks.

Re: Suppress docx4j info and warn output to stderr?

PostPosted: Mon Dec 18, 2017 11:34 am
by jason
docx4j uses slf4j for logging.

If you are seeing log messages, it is using some concrete implementation. Are you sure it is log4j?

Once you know what concrete implementation is in use, you can focus on configuring that correctly.