Override log4j.properties

前端 未结 3 1835
南方客
南方客 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:22

    Try adding an environment variable called LOG4J_CONFIGURATION_FILE while you start the application.

提交回复
热议问题