# Normal logs

/var/log/fusion/*.log {
    # Rotate foo.log into foo.1.log to avoid interference with the
    # renaming used by the logging process in case of oversize logs
    extension .log
    # Having none of these files is OK
    missingok
}

# Rotated oversize logs, these are generated by the logging process
# only when the log file grows beyond a very large maximum size and
# hence should never be there.

/var/log/fusion/*.log.[0-9] {
    # Do not keep any of these
    rotate 0
    # Useless to compress since discarding all
    nocompress
    # Having none of these files is OK
    missingok
    # Log the fact that we removed oversize logs
    lastaction
        logger -p daemon.error -t fusion-logrotate -- old oversize logs found and discarded
    endscript
}
