Adding rotation (flip-flop) to the log file