没有catalina.out
我不知道如何设置以及设置什么,以便在我的计算机上的 Tomcat 上安装 catalina.out。
我在 Windows XP 上使用 Tomcat 6.0.28 压缩版本。要启动服务器,我只需运行startup.bat-file。
难道我做错了什么吗?!
预先感谢您的任何建议。
穆尔
[编辑] 所有记录(异常或System.out)都将写入控制台窗口中。在哪里设置,将它们写入 catalina.out?
正如我在评论之一中所写,如果我使用 setup-version 安装 Tomcat,所有消息都会出现在 stdout_YYYYMMDD.log 中,而且我看不到在哪里更改此设置。
I have no idea, how and what to set up, to have catalina.out on the Tomcat on my computer.
I use Tomcat 6.0.28, zipped-version on Windows XP. To start server I just run 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. Where to set up, that they would be written to 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
看起来 Windows 上的 Tomcat 6 不会写入 catalina.out
我可以明白为什么会发生这种情况,但不确定在哪里修复它。
catalina.sh 有这一行将系统发送到 catalina.out
这一行在 catalina.bat 中缺失,这就是为什么它不会出现在 Windows 上。
Looks like Tomcat 6 on Windows does not write to 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
this line is missing from catalina.bat which is why this does not appear on windows.
我编写了一个批处理文件“start&log.bat”并将其放在 tomcat\bin 目录中。批处理文件只有一行:
I have written a batch file 'start&log.bat' and put it in tomcat\bin directory. The batch file has one line:
您是否使用应用程序服务器运行任何应用程序,因为我认为它仅在应用程序出现错误时才创建文件。
Are you running any applications with the application server as I think it only creates the file when there is an error in an application.
我的经验是,这些日志总是在某个地方生成的,即使不是在 catalina.out 中。在 Linux 7 tomcat7 yum 安装上,我的 system.out.println( 消息最终出现在 /var/log/message 中。对我来说很好,只要我能找到它们。使用 grep -r 'system.out.println 在那里找到它们(' * 来自根目录。命令需要很长时间才能运行。
my experience is that these logs are always produced somewhere, even if not in 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.