You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephanie Wullbieter <sw...@gmx.de> on 2008/04/04 14:12:36 UTC

TC 5.5: stdout_YYYYMMDD.log gets too big - howto limit/rotate?

Hi,

tomcat 5.5 on windoze creates a file stdout_YYYYMMDD.log (YYYY=Year, MM=Month, DD=Day) in $CATALINA_HOME/logs when it's started. But over weeks this file gets several hundrets of mebibytes big. How can I limit the size or init a rotation on that file?

There is no $CATALINA_HOME/common/lib/log4j.jar

Here is the content of $CATALINA_HOME/conf/logging.properties:

handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, 5host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4admin.org.apache.juli.FileHandler.level = FINE
4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4admin.org.apache.juli.FileHandler.prefix = admin.

5host-manager.org.apache.juli.FileHandler.level = FINE
5host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers = 4admin.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 5host-manager.org.apache.juli.FileHandler

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
#org.apache.catalina.startup.ContextConfig.level = FINE
#org.apache.catalina.startup.HostConfig.level = FINE
#org.apache.catalina.session.ManagerBase.level = FINE

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TC 5.5: stdout_YYYYMMDD.log gets too big - howto limit/rotate?

Posted by Stephanie Wullbieter <sw...@gmx.de>.
Found this:

How do I rotate catalina.out?
http://www.apache-korea.org/tomcat/faq/misc.html#catalina.out


-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TC 5.5: stdout_YYYYMMDD.log gets too big - howto limit/rotate?

Posted by Mark Thomas <ma...@apache.org>.
Stephanie Wullbieter wrote:
>> What is filling it? Is an app logging to stdout/stderr?
> 
> An application is using the Documentum Foundation Classes (DFC-API) and the DFC-API reports errors to the stdout.log

Take a look at the swallowOutput configuration parameter for a context. You 
should be able to fix things using that.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TC 5.5: stdout_YYYYMMDD.log gets too big - howto limit/rotate?

Posted by Stephanie Wullbieter <sw...@gmx.de>.
> What is filling it? Is an app logging to stdout/stderr?

An application is using the Documentum Foundation Classes (DFC-API) and the DFC-API reports errors to the stdout.log


> Stephanie Wullbieter wrote:
> > Hi,
> > 
> > tomcat 5.5 on windoze creates a file stdout_YYYYMMDD.log (YYYY=Year,
> MM=Month, DD=Day) in $CATALINA_HOME/logs when it's started. But over weeks
> this file gets several hundrets of mebibytes big. How can I limit the size or
> init a rotation on that file?
> 

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TC 5.5: stdout_YYYYMMDD.log gets too big - howto limit/rotate?

Posted by Mark Thomas <ma...@apache.org>.
Stephanie Wullbieter wrote:
> Hi,
> 
> tomcat 5.5 on windoze creates a file stdout_YYYYMMDD.log (YYYY=Year, MM=Month, DD=Day) in $CATALINA_HOME/logs when it's started. But over weeks this file gets several hundrets of mebibytes big. How can I limit the size or init a rotation on that file?

What is filling it? The Tomcat generated entries should be fairly small. Is 
an app logging to stdout/stderr?

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org