18 #ifndef ASTERISK_LOGGER_CATEGORY_H
19 #define ASTERISK_LOGGER_CATEGORY_H
26 #define AST_LOG_CATEGORY_ENABLED -1
31 #define AST_LOG_CATEGORY_DISABLED 0
43 int ast_logger_category_load(
void);
55 int ast_logger_category_unload(
void);
69 uintmax_t ast_debug_category_register(
const char *name);
81 int ast_debug_category_unregister(
const char *name);
100 int ast_debug_category_set_sublevel(
const char *name,
int sublevel);
122 int ast_debug_category_set_sublevels(
const char *
const *names,
size_t size,
int default_sublevel);
139 char *ast_debug_category_complete(
const char *
const *argv,
int argc,
const char *word,
int state);
157 int ast_debug_category_is_allowed(
int sublevel, uintmax_t ids);
176 #define ast_debug_category(sublevel, ids, ...) \
178 if (DEBUG_ATLEAST(sublevel) || ast_debug_category_is_allowed(sublevel, ids)) { \
179 ast_log(AST_LOG_DEBUG, __VA_ARGS__); \
Support for logging to various files, console and syslog Configuration in file logger.conf.