winlin

add srs_log_file to write log to file. change to 0.9.27

@@ -684,9 +684,9 @@ int SrsConfig::parse_file(const char* filename) @@ -684,9 +684,9 @@ int SrsConfig::parse_file(const char* filename)
684 // TODO: check http. 684 // TODO: check http.
685 // TODO: check pid. 685 // TODO: check pid.
686 686
687 - std::string filename = this->get_srs_log_file();  
688 - if (!filename.empty()) {  
689 - srs_trace("open log file %s and write to", filename.c_str()); 687 + std::string log_filename = this->get_srs_log_file();
  688 + if (!log_filename.empty()) {
  689 + srs_trace("open log file %s and write to", log_filename.c_str());
690 } 690 }
691 691
692 return ret; 692 return ret;