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__)
185 #endif // __BG_LOG_H_
void bg_log_set_dest(bg_msg_queue_t *q)
Set the log destination.
Something interesting the user might want to know.
Definition: log.h:56
void bg_log_syslog_flush()
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.
void bg_log_syslog_init(const char *name)
Initialize syslog logging.
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.
Something went wrong, cannot continue.
Definition: log.h:55
Something went wrong, but is not fatal.
Definition: log.h:54
Only for programmers, useless for users.
Definition: log.h:53
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_level_t
Log levels.
Definition: log.h:51
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_set_verbose(int mask)
Set verbosity mask.
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:447