MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / log_message

Function log_message

src/framework/debug/trace.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117void reset_logging() {
118 std::lock_guard<std::mutex> lock(logger_mutex());
119 auto & state = logger_state();
120 state.config_enabled = false;
121 state.file_path.reset();
122 state.file_stream.reset();
123 state.callback = nullptr;
124 state.user_data = nullptr;
125 logger_enabled_flag().store(false, std::memory_order_release);
126}
127
128void set_log_callback(LogCallback callback, void * user_data) {
129 std::lock_guard<std::mutex> lock(logger_mutex());
130 auto & state = logger_state();
131 state.callback = callback;
132 state.user_data = user_data;
133 const bool active = state.config_enabled || (state.callback != nullptr);

Callers 9

log_default_policyFunction · 0.85
log_soxr_fallbackFunction · 0.85
trace_log_f32Function · 0.85
trace_log_i32Function · 0.85
trace_log_scalarFunction · 0.85
timing_log_scalarFunction · 0.85
~ScopeTimerMethod · 0.85
traceMethod · 0.85
log_lineFunction · 0.85

Calls 5

log_enabledFunction · 0.85
strMethod · 0.80
to_stringFunction · 0.70
flushMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected