|
PipeWire
0.3.29
|
Data Structures | |
| struct | spa_log |
| struct | spa_log_methods |
Macros | |
| #define | SPA_LOG_IMPL_DEFINE(name) |
| #define | SPA_LOG_IMPL_INIT(name) |
| #define | SPA_LOG_IMPL(name) SPA_LOG_IMPL_DEFINE(name) = SPA_LOG_IMPL_INIT(name) |
| #define | SPA_TYPE_INTERFACE_Log SPA_TYPE_INFO_INTERFACE_BASE "Log" |
| The Log interface. More... | |
| #define | SPA_VERSION_LOG 0 |
| #define | spa_log_level_enabled(l, lev) ((l) && (l)->level >= (lev)) |
| #define | SPA_LOG_FUNC(name, lev) |
| #define | SPA_KEY_LOG_LEVEL "log.level" |
| keys can be given when initializing the logger handle More... | |
| #define | SPA_KEY_LOG_COLORS "log.colors" |
| enable colors in the logger More... | |
| #define | SPA_KEY_LOG_FILE "log.file" |
| log to the specified file instead of stderr. More... | |
| #define | SPA_KEY_LOG_TIMESTAMP "log.timestamp" |
| log timestamps More... | |
| #define | SPA_KEY_LOG_LINE "log.line" |
| log file and line numbers More... | |
Enumerations | |
| enum | spa_log_level { SPA_LOG_LEVEL_NONE = 0 , SPA_LOG_LEVEL_ERROR , SPA_LOG_LEVEL_WARN , SPA_LOG_LEVEL_INFO , SPA_LOG_LEVEL_DEBUG , SPA_LOG_LEVEL_TRACE } |
Functions | |
| SPA_PRINTF_FUNC (6, 0) void spa_log_impl_logv(void *object | |
| if (basename) basename+ | |
| vsnprintf (text, sizeof(text), fmt, args) | |
| snprintf (location, sizeof(location), "[%s][%s:%i %s()] %s\n", levels[level], basename, line, func, text) | |
| fputs (location, stderr) | |
| SPA_PRINTF_FUNC (6, 7) void spa_log_impl_log(void *object | |
| enum spa_log_level level const char int const char const char | va_start (args, fmt) |
| spa_log_impl_logv (object, level, file, line, func, fmt, args) | |
| va_end (args) | |
Variables | |
| enum spa_log_level level const char * | file |
| enum spa_log_level level const char int | line |
| enum spa_log_level level const char int const char * | func |
| enum spa_log_level level const char int const char const char * | fmt |
| enum spa_log_level level const char int const char const char va_list | args |
| const char * | basename = strrchr(file, '/') |
| char | text [512] |
| char | location [1024] |
| #define SPA_KEY_LOG_COLORS "log.colors" |
enable colors in the logger
| #define SPA_KEY_LOG_FILE "log.file" |
log to the specified file instead of stderr.
| #define SPA_KEY_LOG_LEVEL "log.level" |
keys can be given when initializing the logger handle
the default log level
| #define SPA_KEY_LOG_LINE "log.line" |
log file and line numbers
| #define SPA_KEY_LOG_TIMESTAMP "log.timestamp" |
log timestamps
| #define SPA_LOG_FUNC | ( | name, | |
| lev | |||
| ) |
| #define SPA_LOG_IMPL | ( | name | ) | SPA_LOG_IMPL_DEFINE(name) = SPA_LOG_IMPL_INIT(name) |
| #define SPA_LOG_IMPL_DEFINE | ( | name | ) |
| #define SPA_LOG_IMPL_INIT | ( | name | ) |
| #define spa_log_level_enabled | ( | l, | |
| lev | |||
| ) | ((l) && (l)->level >= (lev)) |
| #define SPA_TYPE_INTERFACE_Log SPA_TYPE_INFO_INTERFACE_BASE "Log" |
The Log interface.
| #define SPA_VERSION_LOG 0 |
| enum spa_log_level |
| fputs | ( | location | , |
| stderr | |||
| ) |
| if | ( | basename | ) |
| snprintf | ( | location | , |
| sizeof(location) | , | ||
| " %s\n" | [%s][%s:%i %s()], | ||
| levels | [level], | ||
| basename | , | ||
| line | , | ||
| func | , | ||
| text | |||
| ) |
Referenced by pw_get_client_name(), pw_get_prgname(), and spa_debug_format_value().
|
inline |
|
inline |
References args.
| va_end | ( | args | ) |
| enum spa_log_level level const char int const char const char va_start | ( | args | , |
| fmt | |||
| ) |
| enum spa_log_level level const char int const char const char va_list args |
Referenced by SPA_PRINTF_FUNC().
| else basename = strrchr(file, '/') |
| enum spa_log_level level const char * file |
| enum spa_log_level level const char int const char const char * fmt |
Referenced by pw_log_log().
| enum spa_log_level level const char int const char * func |
Referenced by pw_data_loop_invoke(), pw_global_new(), and pw_work_queue_add().
| enum spa_log_level level const char int line |
| char location[1024] |
| char text[512] |
Referenced by spa_i18n_text().