Turn Off Apache Common Logging

前端 未结 4 598
抹茶落季
抹茶落季 2020-12-02 17:09

I am using Apache Common Logging library in my standalone application. After searching through the web, I try to turn off the logging by using

package javaap         


        
4条回答
  •  再見小時候
    2020-12-02 17:54

    A different approach could be - while developing - to use the slf4j project to control logging.

    Using the commonds logging bridge to replace Apache COmmons logging with sljf4 and then use a suitable logging backend. E.g. the slf4j simple or NOP implementation would be reasonable for you. These are just a few jars you drop in your classpath.

    See http://www.slf4j.org/legacy.html#jcl-over-slf4j

提交回复
热议问题