Test log rotation and archive.