Add support of log rotation (ex. logrotate)