Override log4j.properties

前端 未结 3 1834
南方客
南方客 2020-12-16 12:47

My java application references a 3rd-party jar file which uses log4j logging. The problem is that this jar contains its own log4j.properties file which causes access denied

3条回答
  •  甜味超标
    2020-12-16 13:06

    If none of these works

    Add this following statement in your app configuration

    BasicConfigurator.configure();

    it worked for me

提交回复
热议问题