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}
117
118void log_message(std::string_view line) {
119 if (!log_enabled()) {
120 return;
121 }
122 std::lock_guard<std::mutex> lock(logger_mutex());
123 if (!log_enabled()) {
124 return;
125 }
126 auto & state = logger_state();
127 auto & output = logger_output_locked(state);
128 output << line << "\n";
129 output.flush();
130}
131
132void log_message(LogLevel level, std::string_view category, std::string_view message) {
133 if (!log_enabled()) {

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