Viewing the Web Service LogsΒΆ

All the web service logs can be found in the domain directory of the Tomcat application server. The web service uses the log4j logger. You can change the log level of the web service resources for debugging purposes.

To view the logs:

Log in to the web service node as root:

$ ssh root@<ip address of the node>
$ cd /var/log/tomcat/
$ tail -f catalina-daemon.out

To change the log level of the web service:

  1. Log in to the web service node as root
$ ssh root@<ip address of the node>
$ cd /opt/Tomcat/webapps/ufws/WEB-INF/classes
$ vi log4j.properties
  1. Update the logging level for each resource you wish by using the following keywords: info|warn|debug
  2. Force Tomcat to reload
$ touch /opt/Tomcat/webapps/ufws/.reload
  1. Restart the Web Service
$ service tomcat restart