Log file rotation

The bycast.log file is rotated when the file size reaches one GB. The archived log file is then compressed with a delay of one file.

For example, when bycast.log reaches one GB, the file is renamed bycast.log.1 and a new bycast.log file is started. After the new bycast.log reaches one GB, bycast.log.1 is renamed and compressed to become bycast.log.2.gz, and bycast.log is renamed bycast.log.1.

Note: Log files that are compressed due to log rotation should not be uncompressed on the server to which they are written as this can interfere with the log rotation scripts.