File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes System.out.println in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "System.out.println in Tomcat" Watch "System.out.println in Tomcat" New topic

System.out.println in Tomcat

Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
If I open tomcat in console and System out something, I can see in console, but if tomcat is startup as a service, I don't have console,
how can I see the System.out. things? Thanks

Thanks everyone who helped me
Dominic Paquette
Ranch Hand

Joined: Dec 13, 2002
Posts: 64
I think that when tomcat is run as an NT service it redirects the output to the file stdout.log. Look in your logs directory
Hope this helps
Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
Thanks. I misslook this
Jeff Grant
Ranch Hand

Joined: Dec 19, 2001
Posts: 169
Originally posted by Ken Shamrock:
Thanks. I misslook this

I'm not sure if that means you figured it out or not.
So here is my suggestion... just do an out.print(String) if you want to see something. That way you'll see it right in your browser without having to go through the logs.
I agree. Here's the link:
subject: System.out.println in Tomcat
It's not a secret anymore!