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

How to setup Tomcat Server log

prakash pawar
Ranch Hand

Joined: Mar 11, 2010
Posts: 42
Hi All,

As Tomcat Server Log printed to console directly and disappear Later
i want the console log to local file System.out

Prakash Pawar.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

Please don't repeat your posts. It won't get answers any faster and it pollutes the forum.

There is no such file as "System.out", System.out is one of 2 output iostreams that Java supports for compatability with Unix-like OS's. The other one is System.err. For most purposes, Windows is "Unix-like" enough when it comes to the System iostreams that it doesn't matter.

The console is System.out and System.err, unless redirection is applied. However, the System.out stream for Tomcat is normally redirected by the Tomcat.bat/ scripts to go to a file named logs/catalina.out.

On Unix (Linux) systems, I normally use a command named "tail" to track output written to catalina.out on the console if I want to watch things as they happen. Windows doesn't come with this command, so the process requires you to develop a solution of your own.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: How to setup Tomcat Server log
It's not a secret anymore!