| 50 | |
| 51 | |
| 52 | int LoggerGoogle::GetLogger(const string &module_name, const string &log_path, |
| 53 | const int google_log_level, comm::LogFunc &log_func) { |
| 54 | static const string log_name = module_name; |
| 55 | google::InitGoogleLogging(log_name.c_str()); |
| 56 | FLAGS_log_dir = log_path; |
| 57 | FLAGS_stderrthreshold = google::FATAL; |
| 58 | FLAGS_minloglevel = google_log_level; |
| 59 | log_func = LoggerGoogle::Log; |
| 60 | |
| 61 | return 0; |
| 62 | } |
| 63 | |
| 64 | |
| 65 | void LoggerGoogle::Log(const int log_level, const char *format, va_list args) { |
nothing calls this directly
no outgoing calls
no test coverage detected