I’m trying to debug my Java servlet code in Tomcat with System.out.println.
Where will the output go?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They’ll be in
catalina.outor one of thelocalhost*.logfiles in your Tomcat’slogsdirectory assuming no other logging configuration/libraries. If you’re using any third party libraries it’s unlikely they’d also use simpleprintlns, 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.