hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cf_log.h File Reference
#include <stdarg.h>
#include "cf_atomic.h"
Include dependency graph for cf_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define G_LOG_LEVEL   ((int)cf_atomic32_get(g_log_level))
#define G_LOG_CB   ((cf_log_callback)cf_atomic_p_get(g_log_callback))

Typedefs

typedef void(* cf_log_callback )(cf_log_level level, const char *fmt,...)

Enumerations

enum  cf_log_level {
  CF_NO_LOGGING = -1, CF_ERROR, CF_WARN, CF_INFO,
  CF_DEBUG
}

Variables

cf_atomic32 g_log_level
cf_atomic_p g_log_callback

Macro Definition Documentation

#define G_LOG_CB   ((cf_log_callback)cf_atomic_p_get(g_log_callback))

Definition at line 13 of file cf_log.h.

#define G_LOG_LEVEL   ((int)cf_atomic32_get(g_log_level))

Definition at line 12 of file cf_log.h.

Typedef Documentation

typedef void(* cf_log_callback)(cf_log_level level, const char *fmt,...)

A callback function of this signature may be passed in cf_set_log_callback(), so the caller can channel Aerospike client logs as desired.

Parameters
levellog level for this log statement
fmtformat string for this log statement (does not end with '
')
...arguments corresponding to conversion characters in format string

Definition at line 59 of file cf_log.h.

Enumeration Type Documentation

Log escalation level.

Enumerator:
CF_NO_LOGGING 

Pass this in cf_set_log_level() to suppress all logging.

CF_ERROR 

Error condition has occurred.

CF_WARN 

Unusual non-error condition has occurred.

CF_INFO 

Normal information message.

CF_DEBUG 

Message used for debugging purposes.

Definition at line 22 of file cf_log.h.

Variable Documentation

cf_atomic_p g_log_callback
cf_atomic32 g_log_level