Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How are logs rotated?

logs rotated
0
Posted

How are logs rotated?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.