A C# implementation of the well-known logrotate