nabil
nabil

Reputation: 914

using System.out.println to debug in JavaServlet in tomcat?

I'm trying to debug my Java servlet code in Tomcat with System.out.println.

Where will the output go?

Upvotes: 1

Views: 2878

Answers (1)

Dave Newton
Dave Newton

Reputation: 160321

They'll be in catalina.out or one of the localhost*.log files in your Tomcat's logs directory assuming no other logging configuration/libraries. If you're using any third party libraries it's unlikely they'd also use simple printlns, however.

Is there a specific reason you're not using a logging framework or the standard Java logging? It's quite a bit more useful, and configurable.

Upvotes: 5

Related Questions