File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Where does stdout.log come from? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Where does stdout.log come from?" Watch "Where does stdout.log come from?" New topic

Where does stdout.log come from?

Ulvi Cetin
Ranch Hand

Joined: Mar 03, 2003
Posts: 39
I need to turn off stdout.log file output, since the file is getting very large and unmanageble (750MB+). I just looked in to my config files and couldn't see any entry creating this file.

Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
You don't say what version of tomcat you're using.

Another post mentioned this:
To turn all that off, after you're done, you need to specify 'swallowOutput=true' in the Context in server.xml
Ulvi Cetin
Ranch Hand

Joined: Mar 03, 2003
Posts: 39
My Tomcat version is 4.1.29. I tried putting swallowOutput="true" in the Context tag, but didn't solve the problem. Any other suggestions.
Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 276
Hi All,
Reviving an old thread here. I was searching for the same answer to this problem, and can't seem to find a code example anywhere on the web regarding
Is this the way to do this? Code snip from my server.xml:

Or do I have to do this ?

The reason I ask is that my current Server.xml file has a DefaultContext tag but the only Context tag I have is

and I don't know if this examples context even applies to my application.

While I have you, I have been googling to try to find resources regarding how to configure server.xml and catalina.bat, and am having trouble finding info on this, even on, there are so many links and I can't seem to find the correct page which talks about these two files. Anyone have a good link they could send?

Thanks very much!

I agree. Here's the link:
subject: Where does stdout.log come from?
It's not a secret anymore!