environment specific log4j configuration by spring

前端 未结 2 1375
感情败类
感情败类 2021-02-05 09:24

I am loading log4j.xml using the traditional way


    log4jConfigLocation
    classp         


        
2条回答
  •  梦如初夏
    2021-02-05 10:03

    This might help too for more recent readers: in Log4j 2.7 (but it's probably older) the parameter name has been altered: see interface Log4jWebSupport :

    /**
     * The {@link javax.servlet.ServletContext} parameter name for the location of the configuration.
     */
    String LOG4J_CONFIG_LOCATION = "log4jConfiguration";
    

提交回复
热议问题