25 #ifndef LIBASTERIX_LOG_H 26 #define LIBASTERIX_LOG_H 35 typedef enum _ast_log_level_t
45 #define AST_MAX_LOG_MESSAGE_SIZE 512 63 #endif //LIBASTERIX_LOG_H void(* ast_log_handler_func_t)(ast_log_level_t level, const char *message)
Function prototype of log handler callback.
Definition: log.h:49
Error that will cause library crash.
Definition: log.h:41
Error that will cause cause decoding/encoding fail.
Definition: log.h:40
void ast_log_stdout(ast_log_level_t level, const char *message)
Log handler that will print message to stdout.
General information message.
Definition: log.h:38
Non important errors.
Definition: log.h:39
Messages that will only be shown in debug build.
Definition: log.h:37
void ast_log_handler_reg(const ast_log_handler_func_t func)
Register log handler callback function.
ast_log_level_t
Log Level.
Definition: log.h:35