[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: catalina.out



As part of the start-up script under Unix/Linux, both standard in and standard
out are redirected to "catalina.out".  If you do not want this, then you need
to change the script.    The name of the script depends on how you installed
Tomcat.  For example, on our AJUG Linux system, I used an RPM and the name of
the script is "/usr/bin/dtomcat".

With regard to other logging, it is pretty hard to stop the logging.  If you
do not specify a log for your individual context, then the logging will go to
the default for all contexts (localhost_<date>.txt).  Keeping the "debug"
level at "0" should help limit the messages to only serious problems.

My primary problem with Tomcat logging is that it does not provide a Logger
class which supports a rolling appender style log.   We use "log4j" for our
own servlet logging, but there is still all the logging that  Tomcat does on
its own.

Cynthia Jeness

Michael Fortin wrote:

> I think catalina.out is used only by unix systems.  Under win the output
> always prints to the console (at least for me).   I don't think there is
> a way to stop the output all together.  Just don't use System.out,
> handle your exceptions in your code (or log them some place else), and
> ignore it.
>
> You can get rid of the other logs by commenting out the Logger elements
> in the conf/server.xml file.
>
> Michael
>
> On Monday, April 29, 2002, at 12:58 PM, Jason R. Kretzer wrote:
>
> > Hello all,
> >
> > I would like to turn off logging in standalone Tomcat 4.0.3.  I want
> > nothing
> > to be written to the catalina.out file.  Is this possible?  If so, how?
> >
> > Thanks!
> >
> > -Jason
> >
> > *************************************************************************
> > ***
> > ********
> > Jason R. Kretzer
> > Software Engineer
> > Opinion One
> > Email:  jason@opone.com
> > Phone:  (513) 361-2771
> > Website:  http://alia.iwarp.com
> >
> > "Make visible what, without you, might perhaps never have been seen."
> > --Robert Bresson
> > *************************************************************************
> > ***
> > ********
> >