25#ifndef LIBASTERIX_LOG_H
26#define LIBASTERIX_LOG_H
35typedef enum _ast_log_level_t
45#define AST_MAX_LOG_MESSAGE_SIZE 512
void ast_log_stdout(ast_log_level_t level, const char *message)
Log handler that will print message to stdout.
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:36
@ AST_LOG_CRITICAL
Error that will cause cause decoding/encoding fail.
Definition log.h:40
@ AST_LOG_PANIC
Error that will cause library crash.
Definition log.h:41
@ AST_LOG_WARNING
Non important errors.
Definition log.h:39
@ AST_LOG_INFO
General information message.
Definition log.h:38
@ AST_LOG_DEBUG
Messages that will only be shown in debug build.
Definition log.h:37
void(* ast_log_handler_func_t)(ast_log_level_t level, const char *message)
Function prototype of log handler callback.
Definition log.h:49