Howdy,
1. Go through server.xml and make sure the various debug="x" statements
are set to debug="0".
2. I didn't see a level for the root logger, and I think the log4j
version is DEBUG.  Do you programmatically specify the root logger level
for some other reason?  It's a good idea to have the root logger level
in the configuration file as something like WARN, and then explicitly
for your package top (e.g. com.mycompany) set it to INFO or DEBUG,
depending on your preferences.  But this is getting more into log4j and
less tomcat territory, so I'll stop here.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Niklas Saers Mailinglistaccount [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 10, 2002 9:03 AM
>To: [EMAIL PROTECTED]
>Subject: Logging
>
>Hi, how can I turn off logging alltogether for Tomcat 4 from May 30th
on a
>development machine, and I'm not into debugging Tomcat itself. I'm
using
>log4j for my webapps, and in my webapp I have added
>
>    <servlet>
>        <servlet-name>condb</servlet-name>
>...
>        <init-param>
>            <param-name>logConfig</param-name>
>            <param-value>/database/niklas/condb/log.conf</param-value>
>        </init-param>
>...
>    </servlet>
>
>and my log.conf looks like:
>
>log4j.rootCategory=stdout,A1
>
>log4j.appender.stdout=org.apache.log4j.ConsoleAppender
>log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
>
>log4j.appender.A1=org.apache.log4j.RollingFileAppender
>log4j.appender.A1.File=/database/niklas/condb/all.log
>log4j.appender.A1.MaxFileSize=4096KB
>log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>log4j.appender.A1.layout.ConversionPattern=%5p [%t - %M] %c - %m%n
>
>
>This works good in the sense that I get the logging from my webapp.
Only
>problem is that it is totally choked in debug messages from Tomcat. I
>would like to turn off the logs for Tomcat alltogether on this
computer.
>When I'm going to deploy it and have it running all the time, I will
turn
>this on again. But for debugging my app I'd like tomcat to be silent.
Any
>suggestions? I've looked through the webpages but haven't found an
answer.
>
>Cheers
>
>   Nik
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to