javatomcatconsolesystem.outcatalina.out

Catalina.out doesn't exist


I want to read my console output logs, and I know that they are stored into "log" folder under the file catalina.out, but it doesn't exists! I have tried in different ways with no results. I don't know how to figure it out, I just want to see my java outputs logs


Solution

  • From catalina.sh , it says :

    #   CATALINA_OUT    (Optional) Full path to a file where stdout and stderr
    #                   will be redirected.
    #                   Default is $CATALINA_BASE/logs/catalina.out
    

    So , look at your script that is used to start Tomcat to find out what the value of the environment variable CATALINA_OUT.