MCPcopy Create free account
hub / github.com/Tencent/phxqueue / GetLogger

Method GetLogger

phxqueue/plugin/logger_google.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52int 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
65void LoggerGoogle::Log(const int log_level, const char *format, va_list args) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected