47 const char *format, ...);
51 const char *file,
const char *func,
int line,
const char *format,
56#define ERROR(format, ...) logging_log_debug(LOG_ERROR, _COMPONENT_, \
57 __FILE__, __func__, __LINE__, format, ##__VA_ARGS__);
59#define WARNING(format, ...) logging_log(LOG_INFO, _COMPONENT_, format, \
62#define INFO(format, ...) logging_log(LOG_INFO, _COMPONENT_, format, \
65#define DEBUG(format, ...) logging_log_debug(LOG_DEBUG, _COMPONENT_, \
66 __FILE__, __func__, __LINE__, format, ##__VA_ARGS__);
68#define TRACE(format, ...) logging_log_debug(LOG_TRACE, _COMPONENT_, \
69 __FILE__, __func__, __LINE__, format, ##_VA_ARGS__);
loglevel_t
error levels
Definition logging.h:33
void logging_log_debug(loglevel_t level, const char *component, const char *file, const char *func, int line, const char *format,...)
log with debug info
Definition logging.c:104
void logging_log(loglevel_t level, const char *component, const char *format,...)
log
Definition logging.c:84
void logging_init(FILE *logf, loglevel_t loglevel)
initialize log file and log level
Definition logging.c:77