• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to setup Tomcat Server log

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
Saloon Keeper
Posts: 28325
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic