Suppress java util logging from 3rd party jar

前端 未结 3 2011
天命终不由人
天命终不由人 2021-01-16 21:38

I am getting tons of info log messages from a 3rd party jar in my eclipse console. Cracking open the jar I see that it uses java.util.logging. I would like to set the outpu

3条回答
  •  抹茶落季
    2021-01-16 21:48

    I think you may have the following snippet useful. It will allow you to set the log behaviour at package level:

    Logger logger = Logger.getLogger("org.apache.axiom");
    logger.setLevel(Level.WARN);
    

提交回复
热议问题