tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: Tomcat 5.5 and Logging - any plain english instructions anywhere?
Date Wed, 16 Nov 2005 14:56:19 GMT
Larry Isaacs wrote:

> You could try modifying common/classes/logging.properties to see
> if you can increase the output.

Tomcat doesn't ship with such a config file, but it gives a sample one 
in the logging docs. Having tried to do some semi intelligent cut and 
pasting to create a logging config for my webapp, I now have a zero 
length logfile.

I have listed logging.properties below, can anybody see anything wrong 
with it?

>  I haven't worked with Struts
> enough to say what logging output you should expect.  If no luck,
> then there's always Google. :)

This is one of those Google searches that falls into the "all questions 
no answers" category, it was the first thing I tried :(

Here is logging.properties:

handlers = 1catalina.org.apache.juli.FileHandler, 
2localhost.org.apache.juli.FileHandler, \
            3manager.org.apache.juli.FileHandler, 
4admin.org.apache.juli.FileHandler, \
            5rfs.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.

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

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].[/rfs].level 
= FINE
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rfs].handlers 
= \
    5rfs.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

Regards,
Graham
--

Mime
View raw message