Controlling the number of saved log files
software can retain up to 1,000 rolled over log files for each log that is
being generated. For example, if you are generating two log files, MYDM_en_US_UTF-8.log and MYDM_fr_UTF-8.log file, you can maintain up to 1,000 backup log files for the MYDM_en_US_UTF-8.log and 1,000 backup log files for the MYDM_fr_UTF-8.log.
The number of log files retained is determined by the value of SM_BACKUP_FILE_LIMIT. When a starts up, it renames a file that matches its log filename, adding a .bak
to the name. If there is an existing .bak file, the .bak will be replaced with .NNN.
For example, if the SM_BACKUP_FILE_LIMIT environment variable is set to 3, the process is as follows:
- A log file is created and it is named MYDM_en_US_UTF-8.log.
- Since the limit of MYDM_en_US_UTF-8.log.NNN files that are retained is set to 3, when the MYDM_en_US_UTF-8.log file created in step 5 is rolled over: