Handle log rotations