PipeWire
0.2.9
|
Logging functions of PipeWire. More...
Public Member Functions | |
#define | pw_log_level_enabled(lev) (pw_log_level >= (lev)) |
Check if a loglevel is enabled. More... | |
SPA_EXPORT void | pw_log_set (struct spa_log *log) |
Set the global log interface. More... | |
SPA_EXPORT struct spa_log * | pw_log_get (void) |
Get the global log interface. More... | |
SPA_EXPORT void | pw_log_set_level (enum spa_log_level level) |
Set the global log level. More... | |
SPA_EXPORT void | pw_log_log (enum spa_log_level level, const char *file, int line, const char *func, const char *fmt,...) |
Log a message. More... | |
SPA_EXPORT void | pw_log_logv (enum spa_log_level level, const char *file, int line, const char *func, const char *fmt, va_list args) |
Log a message with va_list. More... | |
#define | pw_log_error(...) pw_log(SPA_LOG_LEVEL_ERROR,__VA_ARGS__) |
Log an error message. More... | |
#define | pw_log_warn(...) pw_log(SPA_LOG_LEVEL_WARN,__VA_ARGS__) |
Log a warning message. More... | |
#define | pw_log_info(...) pw_log(SPA_LOG_LEVEL_INFO,__VA_ARGS__) |
Log an info message. More... | |
#define | pw_log_debug(...) pw_log(SPA_LOG_LEVEL_DEBUG,__VA_ARGS__) |
Log a debug message. More... | |
#define | pw_log_trace(...) pw_log(SPA_LOG_LEVEL_TRACE,__VA_ARGS__) |
Log a trace message. More... | |
Logging functions of PipeWire.
Logging is performed to stdout and stderr. Trace logging is performed in a lockfree ringbuffer and written out from the main thread as to not block the realtime threads.
SPA_EXPORT struct spa_log * pw_log_get | ( | void | ) |
Get the global log interface.
SPA_EXPORT void pw_log_log | ( | enum spa_log_level | level, |
const char * | file, | ||
int | line, | ||
const char * | func, | ||
const char * | fmt, | ||
... | |||
) |
Log a message.
level | the log level |
file | the file this message originated from |
line | the line number |
func | the function |
fmt | the printf style format |
... | printf style arguments to log |
References pw_log_level_enabled.
SPA_EXPORT void pw_log_logv | ( | enum spa_log_level | level, |
const char * | file, | ||
int | line, | ||
const char * | func, | ||
const char * | fmt, | ||
va_list | args | ||
) |
Log a message with va_list.
level | the log level |
file | the file this message originated from |
line | the line number |
func | the function |
fmt | the printf style format |
args | a va_list of arguments |
References pw_log_level_enabled.
SPA_EXPORT void pw_log_set | ( | struct spa_log * | log | ) |
Set the global log interface.
log | the global log to set |
SPA_EXPORT void pw_log_set_level | ( | enum spa_log_level | level | ) |