Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat view catalina.out log file

Tags:

linux

tomcat

In Red Hat,

cd /var/lib/tomcat tail -f logs/catalina.out 

I can see the log in the console.

In Ubuntu,

cd /var/lib/tomcat6 tail -f logs/catalina.out 

Nothing show out in the console.

May I know what is the problem? Which configuration that I need to look to?

like image 569
fsloke Avatar asked Nov 14 '10 17:11

fsloke


People also ask

How do I view tomcat logs?

The main Apache Tomcat configuration file is at /opt/bitnami/tomcat/conf/server. xml. Once Apache Tomcat starts, it will create several log files in the /opt/bitnami/tomcat/logs directory.

What is Catalina out file in tomcat?

Catalina. out simply contains everything that is written to Tomcat's "System. out" and "System. err". The name "catalina.

What is the difference between Catalina out and Catalina log?

As I saw both of them contain similar content. Catalina. out contains almost everything in the log including something more. It might be useful to post the config files, the tomcat version of the log4j in conf and also your applications config of log4j usually in root of your webapp's classpath.

Where are tomcat logs on Mac?

Tomcat logs are saved in the Tomcat_Home/logs/catalina. out file. So to live show tomcat logs, you can use tail -f command in the terminal, the tail -f command will display the latest logs in the catalina. out file in terminal.


2 Answers

Tomcat 7 Ubuntu Server 12.04 LTS:

tail -f /var/log/tomcat7/catalina.out 
like image 155
fusion27 Avatar answered Sep 19 '22 19:09

fusion27


locate catalina.out and find out where is your catalina out. Because it depends.

If there is several, look at their sizes: that with size 0 are not what you want.

like image 29
Andrey Regentov Avatar answered Sep 20 '22 19:09

Andrey Regentov