为什么文件名为catalina.out? [英] Why file is named catalina.out?
问题描述
与其他日志文件相反
catalina.out
具有不同的扩展名.我已经检查logging.properties,但未发现有关.out的任何信息.为什么在何处设置?谢谢.
has different extension. I have check logging.properties and found nothing about .out. Why and where this is set? Thanks.
推荐答案
Catalina.out仅包含写入Tomcat的"System.out"和"System.err"的所有内容.
Catalina.out simply contains everything that is written to Tomcat's "System.out" and "System.err".
名称"catalina.out"来自通常用于启动Tomcat的catalina.sh脚本.如果您想更改名称...或对out/err流进行一些时髦的操作...您可以修改脚本,或将其替换为其他启动脚本.
The name "catalina.out" comes from the catalina.sh script that is conventionally used to launch Tomcat. If you want to change the name ... or do something funky with your out/err streams ... you can hack the script, or replace it with an alternative launch script.
在此处中解释了"Catalina"名称的由来..>
The origin of the name "Catalina" is explained here.
我检查了 logging.properties 并没有发现任何关于 .out 的信息.
I have check logging.properties and found nothing about .out.
将标准输出/错误流重定向到catalina.out发生在 catalina.sh
脚本中.
The redirection of the standard output / error streams to catalina.out happens in the catalina.sh
script.
这篇关于为什么文件名为catalina.out?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!