![]() |
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
#include "as_log.h"
Collaboration diagram for as_log: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. |