![]() |
The interface which all loggers should implement.
Definition at line 123 of file src/include/aerospike/as_logger.h.
#include "as_logger.h"
Data Fields | |
int(* | destroy )(as_logger *) |
int(* | enabled )(const as_logger *, const as_logger_level) |
as_logger_level(* | level )(const as_logger *) |
int(* | log )(const as_logger *, const as_logger_level, const char *, const int, const char *, va_list) |
int(* as_logger_hooks::destroy)(as_logger *) |
The destroy should free resources associated with the logger's source. The destroy should not free the logger itself.
Definition at line 129 of file src/include/aerospike/as_logger.h.
int(* as_logger_hooks::enabled)(const as_logger *, const as_logger_level) |
Test if the log level is enabled for the logger.
Definition at line 134 of file src/include/aerospike/as_logger.h.
as_logger_level(* as_logger_hooks::level)(const as_logger *) |
Get the current log level of the logger.
Definition at line 139 of file src/include/aerospike/as_logger.h.
int(* as_logger_hooks::log)(const as_logger *, const as_logger_level, const char *, const int, const char *, va_list) |
Log a message using the logger.
Definition at line 144 of file src/include/aerospike/as_logger.h.