![]() |
Aerospike Client exposed logging functionality including:
Each aerospike contains its own as_log instance: aerospike.log.
To set the log level for the aerospike client, simply use as_log_set_level() and pass in the client log to set.
By default, the logger sends log messages to STDERR.
To change where log messages are sent, simply define a new as_log_callback, and set it for the client using as_log_set_callback():
Where the my_log_callback
could be defined as
Definition at line 140 of file src/include/aerospike/as_log.h.
#include "as_log.h"
Data Fields | |
cf_atomic_p | callback |
cf_atomic32 | level |
Related Functions | |
(Note that these are not member functions.) | |
as_log * | as_log_init (as_log *log) |
bool | as_log_set_callback (as_log *log, as_log_callback callback) |
bool | as_log_set_level (as_log *log, as_log_level level) |
|
related |
Set the callback for the given log
log | The log context. |
callback | The log callback. |
|
related |
Set the level for the given log.
log | The log context. |
level | The log level. |
cf_atomic_p as_log::callback |
Logging Callback
Definition at line 150 of file src/include/aerospike/as_log.h.
cf_atomic32 as_log::level |
Log Level
Definition at line 145 of file src/include/aerospike/as_log.h.