简体   繁体   中英

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.

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.

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

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

this line is missing from catalina.bat which is why this does not appear on windows.

I have written a batch file 'start&log.bat' and put it in tomcat\\bin directory. 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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