How are logs rotated?
A. The logs cmmApp.log*. cmmUser.log*, cmmAdmin.log*. cmmIvr.log.*, meas.log*, alarm.log*, cdr.log* use log4j. The following example of log rotation is for cmmApp.log. Rotation for other logs is similar. The cmmApp.log is created first. When the log hits 1MB, cmmApp.log is renamed to cmmApp.log.1 and a new cmmApp.log is created. When this hits 1MB size, cmmApp.log.1 is renamed as cmmApp.log.2, cmmApp.log is renamed as cmmApp.log.1 and a new cmmApp.log is created. This continues until the maximum number of 250 files is created (cmmApp.log.250 is created). After that, cmmApp.log.250 will be removed, cmmApp.log.249 will be renamed to cmmApp.log.250, cmmApp.log.248 to cmmApp.log.249,….cmmApp.log.2 to cmmApp.log.3, cmmApp.log.1 to cmmApp.log.2, cmmApp.log to cmmApp.log.1, and a new cmmApp.log is created.