Added logrotate functionality