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

Function LogLevel2GoogleLogLevel

phxqueue/plugin/logger_google.cpp:24–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24inline int LogLevel2GoogleLogLevel(const phxqueue::comm::LogLevel log_level) {
25 switch (log_level) {
26 case phxqueue::comm::LogLevel::Error:
27 return google::ERROR;
28 case phxqueue::comm::LogLevel::Warning:
29 return google::WARNING;
30 case phxqueue::comm::LogLevel::Info:
31 return google::INFO;
32 case phxqueue::comm::LogLevel::Verbose:
33 default:
34 ;
35 }
36
37 return -1;
38}
39
40
41}

Callers 1

LogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected