Hi, Logs are not flushed at startup. When I stop service I can see the whole stack (startup and shutdown) but I cannot see any message at catalina.out while service is running. I'm using the default server.xml. Thanks in advance!
More info: * Note that I have tested tomcat 6.0.20 and logs were displayed successfuly * Note that we are using tomcat 6.0.24 64bits on windows 2008 x64 Thanks a lot! > Hi, > Logs are not flushed at startup. > When I stop service I can see the whole stack (startup and shutdown) but I > cannot see any message at catalina.out while service is running. > I'm using the default server.xml. > Thanks in advance!
This is an unwanted side-effect of adding support for encoding to JULI. Buffering was also made configurable but there is some unexpected buffering going on in the classes that do the encoding. You can revert to the original behaviour by setting bufferSize=-1 for your log handlers. Looks like either the default bufferSize needs changing or we need to find a way to avoid the buffering in encoding.
Hi, I have been trying to find where can I change the BufferSize and there is no configuration file containing: bufferSize If it is not possible to change it I will have to revert to 6.0.20 where flush worked perfectly. Where can I change this property ? Thanks a lot!!
I will change priority due to a lack of logs is blocking to set this server in production environment. Thanks in advance...
bufferSize is explained in the logging documentation: http://tomcat.apache.org/tomcat-6.0-doc/logging.html For example: 1catalina.org.apache.juli.FileHandler.bufferSize=-1
Created attachment 24888 [details] logging.properties
Hi, This workarround has worked perfectly. I have attached my logging.properties in order to help anybody experiencing the same issue. Thanks a lot.
This has been fixed in trunk and proposed for 6.0.x by Filip
The fix has been applied to 6.0.x and will be included in 6.0.25 onwards.