aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to setup Tomcat Server log" Watch "How to setup Tomcat Server log" New topic
Author

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




Regards,
Prakash Pawar.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16142
    
  21

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/tomcat.sh 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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
jQuery in Action, 2nd edition
 
subject: How to setup Tomcat Server log