Use File::Write::Rotate for Riap access log