MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / level_str

Function level_str

src/foundation/log.c:99–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static const char *level_str(CBMLogLevel level) {
100 switch (level) {
101 case CBM_LOG_DEBUG:
102 return "debug";
103 case CBM_LOG_INFO:
104 return "info";
105 case CBM_LOG_WARN:
106 return "warn";
107 case CBM_LOG_ERROR:
108 return "error";
109 default:
110 return "unknown";
111 }
112}
113
114static void append_char(char *buf, size_t bufsz, size_t *pos, char ch) {
115 if (*pos < bufsz - 1) {

Callers 1

cbm_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected