Implemented log file rotation.