• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to setup Tomcat Server log

 
prakash pawar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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



 
Tim Holloway
Saloon Keeper
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic