Allow file paths to be given to set_log_target.