Purging of Logs

Configure the logger related attributes in the RevLog4jConfig.xml file available in the $FIC_HOME/conf/ folder. Each of log file will have appenders in this file and attributes pertaining to this particular appender can be changed.
The default size of the log files is set to 5000 KB and number of maximum backup log files retained is set to 5, both of which are configurable. Increasing these parameters to a higher value should depend on the server hardware configurations and may reduce the performance.

Note:

Similar settings are also available in OFSAALogger.xml file available in the $FIC_HOME/conf/folder which contains configuration for additional loggers used in OFS AAI. You can configure the Log file size as explained in the following section.
To configure the Logs file size, follow these steps:
  1. Navigate to $FIC_HOME/conf folder or <DeployedLocation>/<context.war>/<context>/ and locate RevLog4jConfig.xml file.
  2. Configure the logger related attributes in the RevLog4jConfig.xml file. This file will have Appenders for each log files.
    Sample Appender for UMM log file is shown:
    <RollingFile name="UMMAPPENDER"
    fileName="/scratch/ofsaaweb/weblogic/user_projects/domains/cdb/applications/cdb.ear/cdb.war/logs/UMMService.log"
    filePattern="/scratch/ofsaaweb/weblogic/user_projects/domains/cdb/applications/cdb.ear/cdb.war/logs/UMMService-%i.log" >
    <PatternLayout>
    <Pattern> [%d{dd-MM-yy HH:mm:ss,SSS zzz aa}{GMT}] [%-5level] [WEB] %m%n </Pattern>
    </PatternLayout>
    <Policies>
    <SizeBasedTriggeringPolicy size="5000 KB" /> </Policies>
    <DefaultRolloverStrategy max="5"> <!-- number of backup files --> </DefaultRolloverStrategy>
    </RollingFile>
  3. To change the log file size, modify the value set for SizeBasedTriggeringPolicy size.
  4. 4. To change the number of backup files to be retained, modify the value set for DefaultRolloverStrategy max.