How to add thread and time precision to enhance debugging for SAS® Enterprise Case Management


When you debug problems with SAS Enterprise Case Management, it is helpful to have thread, millisecond, and response time information in the SAS Enterprise Case Management and localhost access logs. This information enables you to correlate information across multiple log files more easily. The millisecond information is also helpful when you are investigating performance problems.

Follow the steps below to update the SAS Enterprise Case Management log and the localhost access logs for SASServer1 and SASServer8. These changes are recommended for versions of SAS Enterprise Case Management that run on SAS® 9.4.

1. Update your SAS Enterprise Case Management log configuration file.

The following example shows how to add thread and millisecond precision in the SAS Enterprise Case Management log configuration file:

Before adding the precision:

<param name="ConversionPattern" value="SASEntCaseManagement %d{ddMMMyy HH:mm:ss} %-5p %c %x - %m%n" />

 

After adding the precision:

<param name="ConversionPattern" value="SASEntCaseManagement %d{ISO8601} %-5p [%t] %c %x - %m%n" />
 

2. Update your localhost access log configuration files for server1 and server8.

The following example shows how to add thread, response time, and millisecond precision in a localhost access log configuration file:

Before adding the precision:

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." suffix=".txt"/>

 

After adding the precision:

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u [%{dd/MMM/yyyy:HH:mm:ss.SSS Z}t] &quot;%r&quot; %s %b %D %I" prefix="localhost_access_log." suffix=".txt"/>

3. Restart your web services.

4. Confirm your changes.