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

Function cbm_log_set_sink_ex

src/foundation/log.c:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void cbm_log_set_sink_ex(cbm_log_sink_fn fn, CBMLogSinkMode mode) {
114 /* Mode first: a reader that observes the new sink then reads the mode can
115 * never see the mode belonging to the PREVIOUS sink. */
116 atomic_store_explicit(&g_log_sink_mode, mode, memory_order_relaxed);
117 atomic_store_explicit(&g_log_sink, fn, memory_order_relaxed);
118}
119
120void cbm_log_set_level(CBMLogLevel level) {
121 atomic_store_explicit(&g_log_level, level, memory_order_relaxed);

Callers 6

cbm_log_set_sinkFunction · 0.85
test_diagnostics.cFile · 0.85
cx_runFunction · 0.85
test_mcp.cFile · 0.85
test_httpd.cFile · 0.85
test_log.cFile · 0.85

Calls

no outgoing calls

Tested by 1

cx_runFunction · 0.68