How to redirect the JCS log output?

book

Article ID: 142296

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite

Issue/Introduction

By default, the CA Identity Manager (IM) JCS log output is stored a location relative to the installation path <JCSRoot>\logs

 

for example:

C:\Program Files (x86)\CA\Identity Manager\Connector Server\jcs\logs

 

Is it possible to redirect the CA Identity Manager (IM) JCS log output to a different location?

Environment

Release : 14.x

Component : IdentityMinder(Identity Manager)

Resolution

In order to redirect the JCS log output (ie jcs_conn_default.log, jcs_daily.log, servicemix.log) to a different storage location locate to "org.ops4j.pax.logging.cfg" file located in the "<JCSRoot>\etc" folder. For example

 

C:\Program Files (x86)\CA\Identity Manager\Connector Server\etc.

Edit the file and locate the entries for "${jcsroot}"  these are the relative position for the log file. 

 

There are three entries,

log4j.appender.out.file=${jcsroot}/logs/servicemix.log

log4j.appender.out.file=${jcsroot}/logs/jcs_daily.log

log4j.appender.out.file=${jcsroot}/logs/jcs_conn_default.log

You can replace the relative path with a specific drive letter.

For example

log4j.appender.out.file=E:/logs/servicemix.log

log4j.appender.out.file=E:/logs/jcs_daily.log

log4j.appender.out.file=E:/logs/jcs_conn_default.log

 

Once you have made the changes save the file and restart the connector server for the logging changes to take effect.