windows下的tomcat中的system.out.println写在哪里? [英] Where does system.out.println in tomcat under windows gets written?
本文介绍了windows下的tomcat中的system.out.println写在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用用于记录system.out.println语句的第三方库(无法修改它)。输出在控制台中显示正常,但我无法在catalina [...]。日志文件中检索这些信息?
I am using a third party library (cannot modify it) that uses for logging system.out.println statements. The output shows fine in the console but I am not able to retrieve those information in the catalina[...].log file?
是否可以将这些信息发送到log4j?
Is it possible to send those to log4j?
推荐答案
System.out.println()
打印到标准输出。因此,如果要在日志文件中查看这些语句,只需将stdout重定向到Tomcat启动脚本中所需的位置即可。
System.out.println()
prints out to stdout. Therefore, if you want to see these statements in a log file, you can just redirect stdout where you want it in the Tomcat startup script.
这篇关于windows下的tomcat中的system.out.println写在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文