As it turns out, getting rid of the old logging.properties file I had solved
the problem.  However, how I am not sure I am getting all the information
used to be.

Looking at some other examples, this seems to be the list of loggers to
define.  Is this correct?

log4j.rootLogger=INFO, ROOT
log4j.logger.org.apache.catalina=INFO, CATALINA
log4j.logger.org.apache.catalina.core=INFO, CORE
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I
NFO, LOCALHOST
log4j.logger.org.apache.catalina.session=INFO, SESSION

Can syntax like in the logging.properties be used as well:
   ....[/host-manager] = 
like:
 
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=I
NFO, MANAGER

Thanks,
Mark

-----Original Message-----
From: Mark Claassen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 12, 2007 11:31 AM
To: 'Tomcat Users List'
Subject: Using log4J and getting rid of default logs in Tomcat 6

I would like to have all my logging go through log4J and not have the
default XXX.date.log files created.  Is there a way to do this?  I got log4j
working, as it says in the docs, but the localhost.date.log is still created
and written to.  From what I understand, I will need to put a
log4j.properties in the admin and manager webapps to get these to go away,
but I am not sure what to put in them.  

Has anyone done this?  Is there a good on-line resource I can check?  The
logs I would like to get rid of, and replace with log4J managed logs are:

          0 Jun 12 11:19 admin.2007-06-12.log
       1585 Jun 12 11:20 catalina.2007-06-12.log
          0 Jun 12 11:19 host-manager.2007-06-12.log
        736 Jun 12 11:20 localhost.2007-06-12.log
          0 Jun 12 11:19 manager.2007-06-12.log

Thanks,
Mark


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


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

Reply via email to