Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > tomcat3 v tomcat4 and stdout

 
tomcat3 v tomcat4 and stdout
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2001
Location: brooklyn, ny
Status: Offline
Feb 15, 2002, 11:37 AM
 
I recently tried out Tomcat 4 on my trusty iMac that I'm using as a local development server and my problem is i really need to find out where System.out.println("xx") is sending it's output. With Tomcat 3 it sent it to the shell window that launched tomcat but they've changed it in Tomcat 4. I've RTFM'd but can't find a solution. The closest I've seen is redirecting messages to a log file but for debugging i'd like real time display. Does anyone know how I can get Tomcat 4 to redirect to the shell window?
Thanks.
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status: Offline
Feb 16, 2002, 11:06 AM
 
The log files and locations are entirely configurable in the server.xml/web.xml files, but the default install will have the System.out going to catalina.out in the /logs directory.

you can get a realtime display by doing

tail -f catalina.out

this will provide live viewing of the logs as they are appended to the file, and you can hit Ctrl-C to exit the view.

Hope that helps.
     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: brooklyn, ny
Status: Offline
Feb 16, 2002, 10:15 PM
 
Thanks. That works wonderfully. I figured there was probably a simple Unix command trick that would work. My knowledge of Unix just isn't broad enough.
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:35 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2