Frank Fu
Frank Fu

Reputation: 778

In Tomcat, how can I output message to console by using System.out.println

In my java code, I have System.out.println(...) statement which is invoked by jsp. But I don't see anything being written to tomcat console. I've googled around and seems no clear answer on it.

I'm using tomcat 6.0.

Thanks

Upvotes: 4

Views: 18164

Answers (2)

user2699404
user2699404

Reputation: 21

Verify apache/tomcat/logs/stdout.log file.

Upvotes: 2

Erik
Erik

Reputation: 3777

Usually (on default setup) the messages of the System.out.println(...) statement can be found in your ./apache-tomcat6.0/logs/catalina.out logfile.

Upvotes: 3

Related Questions