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

Function level_str

src/foundation/log.c:136–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static const char *level_str(CBMLogLevel level) {
137 switch (level) {
138 case CBM_LOG_DEBUG:
139 return "debug";
140 case CBM_LOG_INFO:
141 return "info";
142 case CBM_LOG_WARN:
143 return "warn";
144 case CBM_LOG_ERROR:
145 return "error";
146 default:
147 return "unknown";
148 }
149}
150
151static void append_char(char *buf, size_t bufsz, size_t *pos, char ch) {
152 if (*pos < bufsz - 1) {

Callers 1

cbm_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected