All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields
as_logger_hooks Struct Reference

Detailed Description

The interface which all loggers should implement.

Definition at line 123 of file src/include/aerospike/as_logger.h.

#include "as_logger.h"

+ Collaboration diagram for as_logger_hooks:

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)
 

Field Documentation

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.


The documentation for this struct was generated from the following file: