There is no catalina.out

前端 未结 4 901
清酒与你
清酒与你 2021-01-17 18:23

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

相关标签:
4条回答
  • 2021-01-17 18:47

    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.

    0 讨论(0)
  • 2021-01-17 18:54

    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
    
    0 讨论(0)
  • 2021-01-17 18:56

    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.

    0 讨论(0)
  • 2021-01-17 19:00

    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.

    0 讨论(0)
提交回复
热议问题