Default language.

Enabling logging


To debug issues with session replication or to verify whether failover is taking place in the Tomcat cluster, you must edit the logging.properties file located in the TomcatInstallationFolder/conf directory.

Note

The logging.properties file is available as an attachment to this topic.

Edit the attached logging.properties file to add new file handlers and set the debug log level to Info. For example, create two new file handlers: 5cluster.org.apache.juli.FileHandler and 6cluster.org.apache.juli.FileHandler, as shown in the following code. Add the code to the logging.properties file.

5cluster.org.apache.juli.FileHandler.level = INFO
5cluster.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5cluster.org.apache.juli.FileHandler.prefix = cluster.
 
6cluster.org.apache.juli.FileHandler.level = INFO
6cluster.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
6cluster.org.apache.juli.FileHandler.prefix = ha.
 
org.apache.catalina.tribes.MESSAGES.level = INFO
org.apache.catalina.tribes.MESSAGES.handlers = 5cluster.org.apache.juli.FileHandler

org.apache.catalina.tribes.level = INFO
org.apache.catalina.tribes.handlers = 5cluster.org.apache.juli.FileHandler


org.apache.catalina.ha.level = INFO
org.apache.catalina.ha.handlers = 6cluster.org.apache.juli.FileHandler

Note

When you install Tomcat through the latest version of BMC Remedy AR System, the cluster log settings are already added by the installer. However, you can change the log level whenever required.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*