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

Function level_str

src/foundation/log.c:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static const char *level_str(CBMLogLevel level) {
145 switch (level) {
146 case CBM_LOG_DEBUG:
147 return "debug";
148 case CBM_LOG_INFO:
149 return "info";
150 case CBM_LOG_WARN:
151 return "warn";
152 case CBM_LOG_ERROR:
153 return "error";
154 default:
155 return "unknown";
156 }
157}
158
159static void append_char(char *buf, size_t bufsz, size_t *pos, char ch) {
160 if (*pos < bufsz - 1) {

Callers 1

cbm_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected