redirect_output_to_log_file