有一个奇怪,尴尬的问题
a) Hudson 操作日志进入 tomcat7-stderr.xdatex.log
b)它没有滚动,这意味着当日志变得太大时清理日志的cron作业不起作用
一直在尝试使用更新的 jars,不同的 log4j.properties 设置,更改 tomcat7w 中的设置,但都无济于事。这是我的设置:
Tomcat7w:
Level: Info
Log Path: C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs
Log Prefix: tomcat_logging
Redirect Stdout: auto
Redirect Stderror: auto
Java Options:-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0
-Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 7.0
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed
-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 7.0\log4j.properties
在tomcat 7.0/conf/
logging.properties has been renamed to logging.properties.off to disable it
在tomcat 7.0/lib/
log4j.jar, tomcat-juli.jar (from extras) and tomcat-juli-adapters.jar are present, as is log4j.properties
我的 log4j.properties 文件: http: //pastebin.com/7gk4hbMy
还有一片标准错误: http: //pastebin.com/C0UtY09x
任何帮助将不胜感激 :-)