This file implements log facility of the library. More...
#include "platform.h"
Go to the source code of this file.
Macros | |
#define | AST_MAX_LOG_MESSAGE_SIZE 512 |
Max Log Message Length. More... | |
Typedefs | |
typedef void(* | ast_log_handler_func_t) (ast_log_level_t level, const char *message) |
Function prototype of log handler callback. More... | |
Enumerations | |
enum | ast_log_level_t { AST_LOG_DEBUG = 0, AST_LOG_INFO, AST_LOG_WARNING, AST_LOG_CRITICAL, AST_LOG_PANIC } |
Log Level. More... | |
Functions | |
void | ast_log_handler_reg (const ast_log_handler_func_t func) |
Register log handler callback function. More... | |
void | ast_log_stdout (ast_log_level_t level, const char *message) |
Log handler that will print message to stdout. More... | |
This file implements log facility of the library.
#define AST_MAX_LOG_MESSAGE_SIZE 512 |
Max Log Message Length.
typedef void(* ast_log_handler_func_t) (ast_log_level_t level, const char *message) |
Function prototype of log handler callback.
enum ast_log_level_t |
void ast_log_handler_reg | ( | const ast_log_handler_func_t | func | ) |
Register log handler callback function.
void ast_log_stdout | ( | ast_log_level_t | level, |
const char * | message | ||
) |
Log handler that will print message to stdout.