PipeWire  0.3.33
src/pipewire/log.h File Reference

Go to the source code of this file.

Macros

#define pw_log_level_enabled(lev)   (pw_log_level >= (lev))
 Check if a loglevel is enabled. More...
 
#define pw_log(lev, ...)
 
#define pw_log_error(...)   pw_log(SPA_LOG_LEVEL_ERROR,__VA_ARGS__)
 
#define pw_log_warn(...)   pw_log(SPA_LOG_LEVEL_WARN,__VA_ARGS__)
 
#define pw_log_info(...)   pw_log(SPA_LOG_LEVEL_INFO,__VA_ARGS__)
 
#define pw_log_debug(...)   pw_log(SPA_LOG_LEVEL_DEBUG,__VA_ARGS__)
 
#define pw_log_trace(...)   pw_log(SPA_LOG_LEVEL_TRACE,__VA_ARGS__)
 
#define pw_log_trace_fp(...)   pw_log(SPA_LOG_LEVEL_TRACE,__VA_ARGS__)
 

Functions

void pw_log_set (struct spa_log *log)
 Configure a logging module. More...
 
struct spa_logpw_log_get (void)
 Get the log interface. More...
 
void pw_log_set_level (enum spa_log_level level)
 Configure the logging level. More...
 
void pw_log_log (enum spa_log_level level, const char *file, int line, const char *func, const char *fmt,...) 1(5
 Log a message. More...
 
void void pw_log_logv (enum spa_log_level level, const char *file, int line, const char *func, const char *fmt, va_list args) 1(5
 Log a message. More...
 

Variables

enum spa_log_level pw_log_level
 The global log level. More...