|
<!-- Log4J configuration begin -->
<!--
If the webAppRootKey parameter is not defined, then webAppRootKey is the default "webapp.root". But it's best to set it to avoid name conflicts between projects.
After the definition, the absolute path of ROOT will be written into the system variable when the Web Container is started.
Then you can use ${webName.root} in the log4j configuration file to represent the absolute path of the Web directory, and store the log file in the webapp.
This parameter is used in the later "Log4jConfigListener"
-->
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>xx.root</param-value>
</context-param>
<!--
The path of the Spring ApplicationContext configuration file. Wildcards can be used, and multiple paths are separated by commas.
This parameter is used for the following "Spring-Context loader"
-->
<!--
context-param> <param-name>a</param-name> <param-value>
applicationContext.xml </param-value> </context-param
-->
<!--Log4j configuration file location loaded by Sprng-->
<!--
context-param> <param-name>log4jConfigLocation</param-name>
<param-value>log4j.properties</param-value> </context-param
-->
<!--Spring default refresh interval of Log4j configuration file, unit is millisecond-->
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<!--Spring log4j Config loader-->
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<!-- Log4J configuration end --> |
|