6 OFSAA Log Files

Information Logging in OFSAA is done using Log4J.

The Log files are available in:
  • UI/Web Logs: <DEPLOYED LOCATION>/<Context>.ear/<Context>.war/logs
  • Application Logs: $FIC_HOME/logs
  • Execution Logs: /ftpshare/logs/<MISDATE>/<INFODOM>/<COMPONENT NAME>/<LOG FILE NAME>.log

Log File Format

In OFSAA, Log files have a standardized format, and you can read the logs using any Standard Log Analysis Tool. The Log Format is:

[GMT TIMESTAMP] [LOGGER LEVEL] [LOGGER LOCATION] [MODULE/COMPONENT] [LOGGED IN USER] [JAVA CLASS] <LOG MESSAGE>

Sample:

[25-04-18 10:08:41,066 GMT AM] [INFO ] [WEB] [UMM] [UMMUSER] [BUSINESSMETADATA] Inside createImplicitObjectsForAllInfodom
[25-04-18 10:08:41,069 GMT AM] [INFO ] [WEB] [UMM] [UMMUSER] [BUSINESSMETADATA] Call createImplicitObjectsForMapper for Infodom = TESTCHEF
[25-04-18 10:08:42,142 GMT AM] [DEBUG] [WEB] [UMM] [UMMUSER] [BUSINESSMETADATA] Source created successfully for InfodomTESTCHEF
[25-04-18 10:08:42,142 GMT AM] [INFO ] [WEB] [UMM] [UMMUSER] [BUSINESSMETADATA] Start - code added to create user group hierarchy for this Infodom
[25-04-18 10:08:42,142 GMT AM] [INFO ] [WEB] [UMM] [UMMUSER] [BUSINESSMETADATA] Inside createUserGroupHierarchyForInfodom

Purging of Logs

Configure the logger related attributes in the RevLog4jConfig.xml file available in the $FIC_HOME/conf/ folder. Each Log File will have appenders in the RevLog4jConfig.xml file and you can change the attributes pertaining to this particular appender.

The default size of the Log files is 5000 KB and the number of maximum backup Log files retained is 5. You can configure both the default size and number of maximum Backup Log files. Increasing these parameters to a higher value should depend on the Server Hardware Configurations and may reduce the performance.

To configure the Log file size:

  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. The file will have Appenders for each Log file.
    Sample Appender:
    <RollingFile name="UMMAPPENDER"
    fileName="/scratch/ofsaaweb/weblogic/user_projects/domains/cdb/applications/cdb.ear/cdb.war/logs/UMMService.lo
    "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>
    </RollingFile>
  3. To change the Log file size, modify the value of SizeBasedTriggeringPolicy size.
  4. To change the number of Backup files to be retained, modify the value of DefaultRolloverStrategy max.