Log out?

eiPlatform II

Documentation

Configuring the eiPlatform to Auto Clean Up Old Log Files

By default the eiPlatform’s logging configuration will create a new log file each day and will not delete old files.  However, the eiPlatform can be configured to clean up old log files.  To do that, you will need to edit the logConfig.xml file as shown below

Instructions:

  1. Open the logConfig.xml file from the eiPlatform installation directory
  2. On line 6, change the appender class from “org.apache.log4j.DailyRollingFileAppender” to “com.pilotfish.utils.log4j.CustomDailyRollingFileAppender”.
  3. Add the following two lines after line 6:
  4. <!– Maximum number of log files.  Older log files will be deleted. –>

    <param name=”maxBackupIndex” value=”10″/>

  5. Change the maxBackupIndex value if desired.  This is the maximum number of log files that will be retained.  For example, if it is “10”, then the current day’s eip.log file plus 9 previous days log files will be retained.  Older log files will be automatically deleted. 
  6. Your logConfig.xml file should look similar to the screenshot below.
  7. Restart the eiPlatform service for this change to take effect. 

Feel free to contact support@pilotfishtechnology.com for any questions that you may have.

    to post comments

    This is a unique website which will require a more modern browser to work! Please upgrade today!

    Thanks!

    Our editors are notified.

    Close