Enable debug mode logging on PMEngine.log for 14.5 CU6 and above versions
search cancel

Enable debug mode logging on PMEngine.log for 14.5 CU6 and above versions

book

Article ID: 389020

calendar_today

Updated On:

Products

CA Client Automation CA Client Automation - IT Client Manager CA Client Automation - Patch Manager

Issue/Introduction

Settings to enable the debug level on PMEngine.log has changed since 14.5 CU6, so why the previous changes 
in the C:\Program Files (x86)\CA\DSM\PatchManagement\conf\config.properties didn't work.

Environment

CA Client Automation - 14.5 CU6 and above

Resolution

Change the logging level inside file C:\Program Files (x86)\CA\DSM\Web Console\webapps\pmengine\WEB-INF\classes\log4j2.xml
(save a copy of the file before then you can rename to change back to the defaul 'info' level).

<Loggers>
        <!-- avoid duplicated logs with additivity=false -->
        <Logger name="com.ca.pmengine" level="debug" additivity="false">
            <AppenderRef ref="Async"/>
            <!--<AppenderRef ref="LogToRollingRandomAccessPMFile"/> -->
            <!--<AppenderRef ref="LogToRollingRandomAccessPMFile"/> -->
            
            <!--<AppenderRef ref="NSMEventAppender"/> -->
    </Logger>
        
        <Root level="debug">
            <AppenderRef ref="LogToPMConsole"/>
            
        </Root>
    </Loggers>

After that restart the Tomcat service:

caf stop tomcat
caf start tomcat

Wait 3 minutes and open again DSM Web Console and accept the patch. The updated PMEngine.log will
start show the debug lines.

Additional Information

In previous versions below 14.5 CU6 follow the steps in this article:

How to set PMEngine.log logging to Debug mode?