convert RotateLogFiles into bool + simplify.