Log File Rotation

An application server can generate large numbers of log messages, so if no action is taken, log files can grow unmanageably large. Log file rotation solves this problem by starting a new log file at fixed intervals. You can either use a third party log rotation program or else set up trace.properties so that the Content Engine starts logging to a new file periodically. You can define the period between log files either by time (every 24 hours, for example) or by data volume (every x kilobytes).

You can, for example, change the log file once a day by replacing this line in the default trace.properties:


with this: