Prevent third-party log file clutter attempts

We use several third-party libraries over which we have no control. One of them throws org.xml.sax.SAXNotRecognizedException as a WARNING in our log files. This does not affect anything except cluttering up our log files. Is there a way to suppress these warnings from our log files? We use sl4j logging. Thanks in advance.

Changing logging levels to OFF for a package in a third-party bank does not work? I read somewhere that I will need to change the level of journaling in a third-party bank. But I can’t change a third-party can.

+4
source share
1 answer

Follow the Log4J documentation and configure the logger to limit the message of these packets to a higher level of logging.

0
source

Source: https://habr.com/ru/post/1444891/


All Articles