Enable logging for TRS Validation

You can change the default location where the TRS validation result logs are stored for each Engineering Lifecycle Management applications.

About this task

Procedure

  1. Open the JazzInstallDir/server/conf/{Application}/log4j2.xml file.
  2. Add the following code in the Appenders section.

    If a code already exists in the Appenders section, replace that code with the following code.

    <RollingFile name="<APPLICATION_NAME>TRSValidation" filename="${dir}/${app}-TRS-Validation.log" filePattern="${dir}/${app}-TRS-Validation-%i.log">
    <PatternLayout pattern="%d{ISO8601_OFFSET_DATE_TIME_HHMM}-%m%n"/>
    <Policies>
    <SizeBasedTriggeringPolicy size="10MB"/>
    </Policies>
    <DefaultRolloverStrategy max="5"/>
    </RollingFile>
    
  3. Add the following code in the loggers section.
    <Logger name="com.ibm.team.repository.service.internal.trs.validation.InternalTrsValidationUtilsService" additivity="false" level="INFO">
    <AppenderRef ref="<APPLICATION_NAME>TRSValidation"/>
    </Logger>
    
    The logs of the class file InternalTrsValidationUtilsService is now logged into a separate file for TRS validation results with name ${app}-TRS-Validation.log