ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Enable CA Service Catalog's TRACE (or DEBUG) level for diagnostic purposes

book

Article ID: 12894

calendar_today

Updated On:

Products

CA Service Catalog CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

The following instructions describe how to enable debug logging in Catalog, as written to the view.log file.

Environment

CA Service Catalog, 17.3 version.

Resolution

Enabling the Logging

If you are using Catalog 17.3, please skip below to "Additional Information" for specific instructions.  The following instructions apply to older releases of Catalog, prior to 17.3.

To turn on the TRACE ( or DEBUG )  logging level for CA Service Catalog
1) Go to the Catalog server,  locate a file called log4j.xml  under %USM_HOME%\view\conf\

2) Make a backup copy of log4j.xml. 

3) Modify log4j.xml :

3a)  Change:

<appender name="view" class="org.apache.log4j.RollingFileAppender">

    <param name="File" value="${usm.home}/logs/view.log" />

    <param name="MaxFileSize" value="20MB" />

    <param name="MaxBackupIndex" value="100" />

    <param name="Threshold" value="INFO" />

    <layout class="org.apache.log4j.PatternLayout">

    <param name="ConversionPattern" value="%d{yyyy/MM/dd HH.mm.ss.SSS} %-5p [%t] [%c{1}] %m%n" />

    </layout>

  </appender>

   to :

<appender name="view" class="org.apache.log4j.RollingFileAppender">

    <param name="File" value="${usm.home}/logs/view.log" />

    <param name="MaxFileSize" value="20MB" />

    <param name="MaxBackupIndex" value="100" />

    <param name="Threshold" value="TRACE" />

    <layout class="org.apache.log4j.PatternLayout">

      <param name="ConversionPattern" value="%d{yyyy/MM/dd HH.mm.ss.SSS} %-5p [%t] [%c{1}] %m%n" />

    </layout>

  </appender>

 

3b)  Change:

      <logger name="com.ca">

        <level value="INFO" />

     </logger>

To :

    <logger name="com.ca">

      <level value="TRACE" />

    </logger>

3c)  Save this modified log4.xml .  The Service Catalog TRACE level  logging is  now on.

The change takes  effect immediately. There is no need to recycle the CA Service Catalog service. 

Reversing the Logging

To undo the tracing, simply restore the previously taken copy of the file taken at Step 2.
Save the TRACE level log settings first to another file, in case they are needed in the future.

 
NOTE: Do NOT leave the logging running unless it is required to troubleshoot a specific issue.

Additional Information

Note: In Catalog 17.3, modify log4j.xml  under %USM_HOME%\view\conf\

  • Locate this line (around line 78)
    <Logger name="com.ca" level="info">

    Modify this line to read as:
    <Logger name="com.ca" level="DEBUG">
  • Toward the bottom of the log4j.xml file, locate this line:
    <Root level="warn">

    Modify this line to read as:
    <Root level="DEBUG">