PipeWire
0.3.38
|
Data Structures | |
struct | log_ctx |
Macros | |
#define | DEFAULT_LOG_LEVEL SPA_LOG_LEVEL_WARN |
#define | _log(_c, fmt, ...) |
Functions | |
SPA_LOG_IMPL (default_log) | |
PW_LOG_TOPIC_STATIC (log_topic, "pw.log") | |
PW_LOG_TOPIC (log_conf, "pw.conf") | |
PW_LOG_TOPIC (log_context, "pw.context") | |
PW_LOG_TOPIC (log_metadata, "pw.metadata") | |
PW_LOG_TOPIC (log_node, "pw.node") | |
PW_LOG_TOPIC (log_port, "pw.port") | |
PW_LOG_TOPIC (log_core, "pw.core") | |
PW_LOG_TOPIC (log_proxy, "pw.proxy") | |
PW_LOG_TOPIC (log_global, "pw.global") | |
PW_LOG_TOPIC (log_protocol, "pw.protocol") | |
PW_LOG_TOPIC (log_client, "pw.client") | |
PW_LOG_TOPIC (log_factory, "pw.factory") | |
PW_LOG_TOPIC (log_module, "pw.module") | |
PW_LOG_TOPIC (log_device, "pw.device") | |
PW_LOG_TOPIC (log_resource, "pw.resource") | |
PW_LOG_TOPIC (PW_LOG_TOPIC_DEFAULT, "default") | |
void | pw_log_set (struct spa_log *log) |
Set the global log interface. More... | |
bool | pw_log_is_default (void) |
struct spa_log * | pw_log_get (void) |
Get the global log interface. More... | |
void | pw_log_set_level (enum spa_log_level level) |
Set the global log level. More... | |
void | pw_log_logt (enum spa_log_level level, const struct spa_log_topic *topic, const char *file, int line, const char *func, const char *fmt,...) |
Log a message for the given topic. More... | |
void | pw_log_logtv (enum spa_log_level level, const struct spa_log_topic *topic, const char *file, int line, const char *func, const char *fmt, va_list args) |
Log a message for the given topic with va_list. More... | |
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 for the default topic with va_list. More... | |
void | pw_log_log (enum spa_log_level level, const char *file, int line, const char *func, const char *fmt,...) |
Log a message for the default topic. More... | |
void | pw_log_log_object (enum spa_log_level level, const char *file, int line, const char *func, uint32_t flags, const void *object) |
void | _pw_log_topic_new (struct spa_log_topic *topic) |
Initialize the log topic. More... | |
void | pw_log_init (void) |
Variables | |
enum spa_log_level | pw_log_level = DEFAULT_LOG_LEVEL |
The global log level. More... | |
struct spa_log_topic * | PW_LOG_TOPIC_DEFAULT |
#define _log | ( | _c, | |
fmt, | |||
... | |||
) |
#define DEFAULT_LOG_LEVEL SPA_LOG_LEVEL_WARN |
void pw_log_init | ( | void | ) |
References PW_LOG_TOPIC_DEFAULT, and PW_LOG_TOPIC_INIT.
bool pw_log_is_default | ( | void | ) |
void pw_log_log | ( | enum spa_log_level | level, |
const char * | file, | ||
int | line, | ||
const char * | func, | ||
const char * | fmt, | ||
... | |||
) |
Log a message for the default topic.
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 spa_log::level, pw_log_logtv(), and PW_LOG_TOPIC_DEFAULT.
Referenced by pw_log_log_object().
void pw_log_log_object | ( | enum spa_log_level | level, |
const char * | file, | ||
int | line, | ||
const char * | func, | ||
uint32_t | flags, | ||
const void * | object | ||
) |
References log_ctx::file, log_ctx::func, log_ctx::level, and pw_log_log().
void pw_log_logt | ( | enum spa_log_level | level, |
const struct spa_log_topic * | topic, | ||
const char * | file, | ||
int | line, | ||
const char * | func, | ||
const char * | fmt, | ||
... | |||
) |
Log a message for the given topic.
level | the log level |
topic | the topic |
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 spa_log::level, pw_log_topic_enabled, spa_log_logtv, and SPA_UNLIKELY.
void pw_log_logtv | ( | enum spa_log_level | level, |
const struct spa_log_topic * | topic, | ||
const char * | file, | ||
int | line, | ||
const char * | func, | ||
const char * | fmt, | ||
va_list | args | ||
) |
Log a message for the given topic with va_list.
level | the log level |
topic | the topic |
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 spa_log_logtv.
Referenced by pw_log_log(), and pw_log_logv().
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 for the default topic 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 spa_log::level, pw_log_logtv(), and PW_LOG_TOPIC_DEFAULT.
PW_LOG_TOPIC | ( | log_conf | , |
"pw.conf" | |||
) |
PW_LOG_TOPIC | ( | log_context | , |
"pw.context" | |||
) |
PW_LOG_TOPIC | ( | log_metadata | , |
"pw.metadata" | |||
) |
PW_LOG_TOPIC | ( | log_node | , |
"pw.node" | |||
) |
PW_LOG_TOPIC | ( | log_port | , |
"pw.port" | |||
) |
PW_LOG_TOPIC | ( | log_core | , |
"pw.core" | |||
) |
PW_LOG_TOPIC | ( | log_proxy | , |
"pw.proxy" | |||
) |
PW_LOG_TOPIC | ( | log_global | , |
"pw.global" | |||
) |
PW_LOG_TOPIC | ( | log_protocol | , |
"pw.protocol" | |||
) |
PW_LOG_TOPIC | ( | log_client | , |
"pw.client" | |||
) |
PW_LOG_TOPIC | ( | log_factory | , |
"pw.factory" | |||
) |
PW_LOG_TOPIC | ( | log_module | , |
"pw.module" | |||
) |
PW_LOG_TOPIC | ( | log_device | , |
"pw.device" | |||
) |
PW_LOG_TOPIC | ( | log_resource | , |
"pw.resource" | |||
) |
PW_LOG_TOPIC | ( | PW_LOG_TOPIC_DEFAULT | , |
"default" | |||
) |
PW_LOG_TOPIC_STATIC | ( | log_topic | , |
"pw.log" | |||
) |
SPA_LOG_IMPL | ( | default_log | ) |