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

Function LogLevel2SysLogLevel

phxqueue/plugin/logger_sys.cpp:27–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27inline int LogLevel2SysLogLevel(const phxqueue::comm::LogLevel log_level) {
28 switch (log_level) {
29 case phxqueue::comm::LogLevel::Error:
30 return LOG_ERR;
31 case phxqueue::comm::LogLevel::Warning:
32 return LOG_WARNING;
33 case phxqueue::comm::LogLevel::Info:
34 return LOG_INFO;
35 case phxqueue::comm::LogLevel::Verbose:
36 return LOG_DEBUG;
37 default:
38 ;
39 };
40 return LOG_ERR;
41}
42
43}
44

Callers 1

LogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected