Managing the size of the log file

The jazz.log file records all the errors and notable events that are created by the user. As the size of the log file increases, you can maintain its size.

About this task

By default, the size of the log file is set to 10 MB and the number of backup files are set to five in the log4j.properties file. This file is in the installdir/jazz/server/conf/jazz directory. You can change the rollover property of the log4j.properties file as needed.

To do size-based rollover, update the numeric value of the following lines:

log4j.appender.file.MaxFileSize=10MB

log4j.appender.file.MaxBackupIndex=5

These lines limit the log file size to 10 MB and the number of backup files to 5.

You can also do time-based rollover, set a date, or do daily rollover. To do a daily rollover, change log4j.appender.file=org.apache.log4j.FileAppender to log4j.appender.file=org.apache.log4j.DailyRollingFileAppender. This change rolls over the log file every midnight.


Feedback