How to enable EEM SDK Debug Logging in Workload Control Center / Autosys Web UI ?
search cancel

How to enable EEM SDK Debug Logging in Workload Control Center / Autosys Web UI ?

book

Article ID: 32815

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys) Autosys Workload Automation

Issue/Introduction

What are the steps to enable EEM SDK Debug logging in Workload Control Center (WCC) / Autosys Web UI?

Environment

Release: ATSYHA99000-11.3.6-Workload Automation AE-High Availability Option
Component:

Resolution

 

1) Backup the file eiam.config. This file is located under:

Unix:

$CA_WCC_INSTALL_LOCATION/data/config/application/config/resources/ or /opt/CA/WorkloadCC/data/config/application/config/resources/

Windows:

%CA_WCC_INSTALL_LOCATION%\data\config\application\config\resources or C:\Program Files\CA\Workload Control Center\data\config\application\config\resources

 

2) Edit the original eiam.config:

1) Ensure the full path and file name in the LoggerConfiguration File is correct.   (example: <LoggerConfiguration file="/opt/CA/WorkloadAutomationAE/wcc/data/config/application/config/resources/eiam.log4j.config"/>

2)Look for <SDK type="Java'> to have below changes added

3) Change  <logLevel></logLevel>    to appropriate need.  Example:    <logLevel>all</logLevel>

          Note: possible values are severe/warning/info/config/fine/finer/finest/all/off 

4) Change: <logToFile></logToFile>  to         <logToFile>true</logToFile>

Note:  Change to next item <logFile></logFile> is not needed normally,       

5) Change:  <maxLogSize>1000</maxLogSize>   to  some size in MB,  

6) Save the file

 

3) Now backup C:/Program Files/CA/Workload Control Center/data/config/application/config/resources/eiam.log4j.config   or $CA_WCC_INSTALL_LOCATION/data/config/application/config/resources/eiam.log4j.config 

4) Edit the original eiam.log4j.config   change the <Loggers>  section to look like below:

 <Loggers>
    <!-- Uncomment to enable Network Logging -->
    
    <Logger name="Network" level="TRACE" additivity="false">
      <AppenderRef ref="Network"/>
    </Logger>
 
    <!-- Uncomment to enable Performance Logging -->
 
    <Logger name="Perform" level="TRACE" additivity="false">
      <AppenderRef ref="Perform"/>
    </Logger>

    <Logger name="SDK" level="TRACE" additivity="false">
      <AppenderRef ref="SDK"/>
    </Logger>

    <Root level="TRACE">
      <AppenderRef ref="SDK"/>
      <AppenderRef ref="Perform"/>
      <AppenderRef ref="Network"/>
      <!-- <AppenderRef ref="Console"/> -->
    </Root>
  </Loggers>

 

5) Adjust the size of the log files it will create and how many files can be allowed in the rollover.

 

  <SizeBasedTriggeringPolicy size="10mb" />
      <DefaultRolloverStrategy max="1"/>

 

6) Save the file

NOTE: No restart of any sort is needed to start seeing the SDK traces.  They get activated when log4j refresh interval is reached.

 

 

EEM SDK Logs go to: 

$CA_WCC_INSTALL_LOCATION/log/eem/eiam*.log   (a file is generated for each item there)

 

 

 

Additional Information

To disable the logging, revert to the backed up files above, no restart needed.