Managing the log file

The jazz.log file records all the errors and notable events performed by the user. As the size of the log file increases over time, you can maintain its size regularly.

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 resides in installdir/jazz/server/conf/jazz. You can change the rollover property of the log4j.properties file according to your need.

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

log4j.appender.file.MaxFileSize=10MB

log4j.appender.file.MaxBackupIndex=5

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

You can also do time-based rollover. You can 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

Did this help? You can provide feedback at Jazz.net (registration required): Comment in the forums or submit a bug