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 171 #define ast_debug_category(sublevel, ids, ...) \ 173 if (DEBUG_ATLEAST(sublevel) || ast_debug_category_is_allowed(sublevel, ids)) { \ 174 ast_log(AST_LOG_DEBUG, __VA_ARGS__); \
int ast_debug_category_set_sublevel(const char *name, int sublevel)
Set the debug category's sublevel.
int ast_debug_category_is_allowed(int sublevel, uintmax_t ids)
Check if a debug category is enabled, and allowed to output.
int ast_logger_category_unload(void)
Unload system wide logger category functionality.
char * ast_debug_category_complete(const char *const *argv, int argc, const char *word, int state)
Add a unique (no duplicates) result to a request for completion for debug categories.
int ast_debug_category_set_sublevels(const char *const *names, size_t size, int default_sublevel)
Set one or more debug category's sublevel.
Support for logging to various files, console and syslog Configuration in file logger.conf.
int ast_debug_category_unregister(const char *name)
Un-register a debug level logger category.
uintmax_t ast_debug_category_register(const char *name)
Register a debug level logger category.
int ast_logger_category_load(void)
Load/Initialize system wide logger category functionality.