1. Make Spring use the log4j as the underlying logging system.
Option 1:
Add a file named "org.apache.commons.logging.LogFactory" in META-INF/services directory of the war file. The file content is as below
org.apache.commons.logging.impl.Log4jFactory
Option 2:
Set the application class loader mode to PARENT_LAST.
Add a file named "commons-logging.properties" to the classpath and specify the implementation of commons logging. The file content is as below
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4Jlogger
2. Config spring log level in logging.xml
<category name="org.springframework" additivity="false">
<priority value="WARN"/>
<appender-ref ref="Warn"/>
</category>