Follow

Enabling Debug logs for the Intigua Server

This article explains the logging mechanisms of the Intigua server.

Background

The intigua server is a Java aplication, deployed using Tomcat server. The intigua server logs are stored in Tomcat's folder heirarchy

Accessing Intigua server logs

The quickest way to access the Intigua server logs, is via the Intigua server itself. Just go to "Logs & Alerts" click "Actions", and then click "View Manager Logs".

To access the logs files themselves are located in the logs folder of Tomcat, under /usr/share/tomcat/default/logs

Configuring log level

By default, the logging level is set to INFO, to prevent excessive logging. Sometimes, for support, you maybe requested to change the log level. To enable debug level logs:

  • edit the file /usr/share/tomcat/default/conf/log4j.properties 
  • the first line should look like this "log4j.rootLogger=ALL, FILE"
  • change the first line, to this: "log4j.rootLogger=ALL, FILE, DEBUGFILE"

Alternativly, run this command:
sed -i 's/log4j\.rootLogger=.*$/log4j.rootLogger=ALL, FILE, DEBUGFILE/g' /usr/share/tomcat/default/conf/log4j.properties

To revert the log level change the line back, or alternativly run this command:
sed -i 's/log4j\.rootLogger=.*$/log4j.rootLogger=ALL, FILE/g' /usr/share/tomcat/default/conf/log4j.properties

Note: no need to restart the tomcat server after these changes. The server checks for configuration changes every 60 seconds.

Preparing log package for Intigua Support

The quickest way to package all the Intigua server side logs, is to use the Intigua server. Simply go to "Logs & Alerts" click "Actions", and then click "Preprare Logs Pacakge". The will initiate a download of the server logs as a zip file.

Comments