Jenkins (formerly Hudson) keeps writing to catalina.out despite log configuration
Hy there
I have the problem that Jenkins keeps writing to the catalina.out which keeps filling the disk, where Jenkins is installed.
This is what I tried so far:
I tried to overwrite the log levels for '' (default) as well as for '
org.apache.catalina.core.ContainerBase.[Catalina].[localhost]
' and set them to 'WARNING
'. However, when I reload jenkin开发者_开发技巧s in the tomcat (6.0.28) manager interface the '' (default) - entry is gone and the other one is reset to 'FINE
'In the tomcat Context.xml I changed
<Context>
to<Context swallowOutput="true">
which should prevent Jenkins of writing to the standard out. I guess the swallowOutput attribute would have to be inside the jenkins.war in order to work correctly.
I don't see why the standard log configuration of Jenkins has to be this verbose and I am seriously wondering how I can change the log level.
Any help would be greatly appreciated, thanks very much
Here is how to configure log4j in tomcat 6 (it's different in other versions): http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j
Note that this will not help if your executors are writing to disk. Those use a separate java process from tomcat.
The updated jenkins issue is available on this URL: https://issues.jenkins-ci.org/browse/JENKINS-7235 We've exactly the same problem, but no solution for the moment.
精彩评论