简体   繁体   English

没有catalina.out

[英]There is no catalina.out

I have no idea, how and what to set up, to have catalina.out on the Tomcat on my computer. 我不知道,如何以及如何设置,在我的计算机上的Tomcat上安装catalina.out。

I use Tomcat 6.0.28, zipped-version on Windows XP. 我在Windows XP上使用Tomcat 6.0.28,zipped-version。 To start server I just run startup.bat-file. 要启动服务器,我只需运行startup.bat-file。

Do I do something wrong?! 我做错了吗?!

Thanks in advance for any advices. 提前感谢任何建议。

Mur 穆尔

[Edited] All records (Exceptions or System.out) will be written in console window. [已编辑]所有记录(例外或System.out)将写入控制台窗口。 Where to set up, that they would be written to catalina.out? 在哪里设置,他们会被写入catalina.out?

As I wrote in one of my comments, if I install Tomcat with setup-version, all messages occur in stdout_YYYYMMDD.log and I don't see, where to change this. 正如我在其中一条评论中所写,如果我使用setup-version安装Tomcat,所有消息都会出现在stdout_YYYYMMDD.log中,我看不到,在哪里更改它。

Looks like Tomcat 6 on Windows does not write to catalina.out 看起来Windows上的Tomcat 6不会写入catalina.out

I can see why this is happening, but not sure where to fix it. 我可以看到为什么会这样,但不知道在哪里修复它。

catalina.sh has this line which sends the System outs into catalina.out catalina.sh有这一行将系统输出发送到catalina.out

"$CATALINA_BASE"/logs/catalina.out 2>&1

this line is missing from catalina.bat which is why this does not appear on windows. catalina.bat中缺少此行,这就是为什么这不会出现在Windows上。

I have written a batch file 'start&log.bat' and put it in tomcat\\bin directory. 我编写了一个批处理文件'start&log.bat'并将其放在tomcat \\ bin目录中。 The batch file has one line: 批处理文件有一行:

catalina run > ..\logs\catalina.out 2<&1

您是否正在使用应用程序服务器运行任何应用程序,因为我认为它只会在应用程序出错时创建该文件。

my experience is that these logs are always produced somewhere, even if not in catalina.out. 我的经验是这些日志总是在某个地方生成,即使不是在catalina.out中。 on Linux 7 tomcat7 yum installed, my system.out.println( messages end up in /var/log/message. fine with me, as long as I can find them. found them there with grep -r 'system.out.println(' * from root directory. Command takes a long time to run. 在Linux 7上安装了tomcat7 yum,我的system.out.println(消息最终在/ var / log / message中。对我很好,只要我能找到它们。用grep -r'system.out.println找到它们('*来自根目录。命令需要很长时间才能运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM