在编译好的环境下 即tomcat/webapp/ROOT/WEB-INF/classes中加入system-ext.properties
其内容如下:
##
## Logging
##
#
# Set any logger that implements org.apache.commons.logging.Log.
#
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
#
# Set this to true if Log4j complains that it was not properly configured.
#
log4j.configure.on.startup=false
再在该目录下加入自己定义的log4j.properties 即可
参考http://issues.liferay.com/browse/LPS-7719

本文介绍如何在已编译好的Tomcat环境下配置Log4j。具体操作是在tomcat/webapp/ROOT/WEB-INF/classes目录下添加system-ext.properties文件,并设置Log4j配置参数。此外,还需在同一目录下添加自定义的log4j.properties文件。
4384

被折叠的 条评论
为什么被折叠?



