MCPcopy Create free account
hub / github.com/bytedance/InfiniStore / log_msg

Function log_msg

src/log.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void log_msg(std::string level, std::string msg) {
21 if (level == "info") {
22 spdlog::get(APP_NAME)->info(msg);
23 }
24 else if (level == "debug") {
25 spdlog::get(APP_NAME)->debug(msg);
26 }
27 else if (level == "error") {
28 spdlog::get(APP_NAME)->error(msg);
29 }
30 else if (level == "warning") {
31 spdlog::get(APP_NAME)->warn(msg);
32 }
33}

Callers

nothing calls this directly

Calls 4

infoMethod · 0.80
debugMethod · 0.80
errorMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected