source:
Question:
Answer:
/var/log/tomcat7/catalina.out
Question:
I am just curious to know, what happens when System.out.print() is called in a servlet?
Where does it write the text? I cannot find any file named stdout_<date>.log on my filesystem.
Where does it write the text? I cannot find any file named stdout_<date>.log on my filesystem.
Answer:
It depends on your servlet container.
For Tomcat :
for exampleWhen running Tomcat on unixes, the console output is usually redirected to the file named catalina.out. The name is configurable using an environment variable. (See the startup scripts). Whatever is written to System.err/out will be caught into that file.
/var/log/tomcat7/catalina.out
댓글
댓글 쓰기