Stop displaying logger output to console from dependencies
问题 I am new to log4j hence asking SOs help. In my Java project I have couple of Maven dependencies which clutter the console output with redundant log info. I want to disable such logging. I understand setting additivity property to false might help. But could not use it properly. I am looking for a log4j.xml config which will only print log output (warn, error ..) from my project and not from any dependencies. 回答1: Redirect all the third party lib logs in a target appender, use another appender