You can change the default location where the TRS validation result logs are stored for
each Engineering Lifecycle Management applications.
Procedure
-
Open the JazzInstallDir/server/conf/{Application}/log4j2.xml file.
- 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>
- 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