Log4j Properties in a Custom Place

后端 未结 3 983
梦如初夏
梦如初夏 2020-12-15 08:50

I\'m using Apache Commons Logging and SLF4J with log4j, but I also want to use the log4j.properties in a custom place like conf/log4.properties. Here is the problem:

3条回答
  •  情歌与酒
    2020-12-15 09:22

    You can specify config file location with VM argument

    -Dlog4j.configuration="file:/C:/workspace3/local/log4j.properties"

提交回复
热议问题