Home > Article > Web Front-end > Where to read tomcat error logs
Tomcat error logs are generally stored in: Linux/Unix/macOS: $CATALINA_HOME/logs/catalina.out Windows: �TALINA_HOME%\logs\catalina.out can be found by running the echo $CATALINA_HOME or echo �TALINA_HOME% command Tomcat installation directory. If the catalina.out file is not found, check the stderr file or the localhost.yyyy-mm-dd.log file, or pass -Dloggi
Tomcat error log location
Tomcat will generate log files when encountering errors to help users diagnose and solve problems. These log files are typically stored in the following location:
Where, $CATALINA_HOME or �TALINA_HOME% is the path to the Tomcat installation directory.
How to find the Tomcat installation directory:
Run the following command in the terminal or command prompt:
Once the log file is located, you can view its contents using a text editor or a command line tool such as tail
or less
.
Note:
catalina.out
file is not found, check the stderr
file or the localhost.yyyy-mm-dd.log
file (e.g. , localhost.2023-03-08.log
). -Dlogging.file=my-log.txt
parameter when starting Tomcat. The above is the detailed content of Where to read tomcat error logs. For more information, please follow other related articles on the PHP Chinese website!