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

Function level_str

src/foundation/log.c:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117static const char *level_str(CBMLogLevel level) {
118 switch (level) {
119 case CBM_LOG_DEBUG:
120 return "debug";
121 case CBM_LOG_INFO:
122 return "info";
123 case CBM_LOG_WARN:
124 return "warn";
125 case CBM_LOG_ERROR:
126 return "error";
127 default:
128 return "unknown";
129 }
130}
131
132static void append_char(char *buf, size_t bufsz, size_t *pos, char ch) {
133 if (*pos < bufsz - 1) {

Callers 1

cbm_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected