27 #include <gmerlin/parameter.h>
28 #include <gmerlin/msgqueue.h>
59 #define BG_LOG_LEVEL_MAX (1<<3)
76 const char * format, ...) __attribute__ ((format (printf, 3, 4)));
114 const
char * format, ...) __attribute__ ((format (printf, 4, 5)));
120 #define bg_log(level, domain, ...) \
121 bg_log_translate(PACKAGE, level, domain, __VA_ARGS__)
172 int bg_log_get_verbose_level();
void bg_log_notranslate(bg_log_level_t level, const char *domain, const char *format,...) __attribute__((format(printf
Send a message to the logger without translating it.
char * bg_log_last_error()
Get last error message.
const char * bg_log_level_to_string(bg_log_level_t level)
Convert a log level to a human readable string.
const char * bg_log_syslog_name()
Return the syslog name.
void bg_log_translate(const char *translation_domain, bg_log_level_t level, const char *domain, const char *format,...) __attribute__((format(printf
Translate a message and send it to the logger.
void bg_log_syslog_init(const char *name)
Initialize syslog logging.
void bg_log_set_verbose(int mask)
Set verbosity mask.
void bg_log_set_dest(bg_msg_queue_t *q)
Set the log destination.
void bg_log_set_verbose_level(int level)
Set verbosity level.
bg_log_level_t
Log levels.
Definition: log.h:52
void void bg_logs_notranslate(bg_log_level_t level, const char *domain, const char *str)
Send a message (as complete string) to the logger without translating it.
@ BG_LOG_WARNING
Something went wrong, but is not fatal.
Definition: log.h:54
@ BG_LOG_ERROR
Something went wrong, cannot continue.
Definition: log.h:55
@ BG_LOG_INFO
Something interesting the user might want to know.
Definition: log.h:56
@ BG_LOG_DEBUG
Only for programmers, useless for users.
Definition: log.h:53
struct bg_msg_queue_s bg_msg_queue_t
Opaque message queue type. You don't want to know what's inside.
Definition: msgqueue.h:446