51 static void Log(
LogLevel level,
const std::string& message);
60#define AUDIO_LOG(level, stream_expr) \
62 if (audio::Logger::IsEnabled(level)) { \
63 std::ostringstream _audio_log_stream; \
64 _audio_log_stream << stream_expr; \
65 audio::Logger::Log(level, _audio_log_stream.str());\
Global logger for the audio module (runtime level control).
Definition logging.h:31
static void SetLevel(LogLevel level)
Set the global log level.
Definition logging.cpp:11
static LogLevel GetLevel()
Get the current log level.
Definition logging.cpp:15
static void Log(LogLevel level, const std::string &message)
Emit a log message at the specified level.
Definition logging.cpp:23
static bool IsEnabled(LogLevel level)
Check if a log level is enabled.
Definition logging.cpp:19
Definition audio_group.cpp:7
LogLevel
Log severity levels for audio diagnostics.
Definition logging.h:18
@ Info
High-level lifecycle and state transitions.
@ Warn
Recoverable or unusual conditions.
@ Error
Fatal failures and unrecoverable errors.
@ Debug
Detailed diagnostics (noisy)
@ Off
Disable all logging.