ensuring create_next_log_file is called as expected