environment specific log4j configuration by spring
问题 I am loading log4j.xml using the traditional way <context-param> <param-name>log4jConfigLocation</param-name> <param-value>classpath:conf/log4j.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> This works fine but now I need to load a different log4j.xml file based on which environment I am in which is defined by a environment variable/jndi entry .. so I was hoping that with new spring 3.1 property