How to add EEM SDK Debug Logging to AutoSys

book

Article ID: 32776

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

What are the steps to enable EEM SDK logging to AutoSys?

Environment

AutoSys 11.3.6 or higher

Resolution

Locate the 'eiam.server.config' file under the following directory:

Unix:
$AUTOUSER
Default: /opt/CA/WorkloadAutomationAE/autouser.<instance>

Windows:
%AUTOUSER%
Default: C:\Program Files (x86)\CA\Workload Automation AE\autouser.<instance>

Inside the file, search for the parameter "LoggerConfiguration". This parameter points to the file that you'll need to modify to enable debugging.
Typically, the file is "logger.server.config" in the same location as the "eiam.server.config" file.


In the "logger.server.config" file, search for the section: <root>

For each section, set:

    maxFileSize to 1000KB

    maxBackupIndex to 20

 

Modify the following section to enable SDK logging, by uncommenting it. Change from:

<!-- Uncomment to enable SDK Logging -->

   <!--

        <logger name="SDK" additivity="false">

                    <level value="warning"/>

                    <appender-ref ref="SDK" />

        </logger>

   -->


To: 


<!-- Uncomment to enable SDK Logging -->

    <logger name="SDK" additivity="false">

       <level value="trace"/>

       <appender-ref ref="SDK" />

    </logger>

 

Then change this section from this:      

       <root>

                <priority value="error" />

                <appender-ref ref="SDK" />

                <!-- <appender-ref ref="Console" /> -->

        </root>


To this:

       <root>

                <priority value="trace" />

                <appender-ref ref="SDK" />

                <!-- <appender-ref ref="Console" /> -->

        </root>


This will enable EEM SDK debugging immediately. There is no need to restart any services.

Debugging will be added to the logs under:

Unix
$AUTOUSER/out
Default: /opt/CA/WorkloadAutomationAE/autouser.<instance>/out

Windows
%AUTOUSER%\out
Default: C:\Program Files (x86)\CA\Workload Automation AE\autouser.<instance>\out