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?
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.
Catalina. out simply contains everything that is written to Tomcat's "System. out" and "System. err". The name "catalina.
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.
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.
Tomcat 7 Ubuntu Server 12.04 LTS:
tail -f /var/log/tomcat7/catalina.out
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With