All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
_log.h File Reference
#include <aerospike/as_log.h>
#include <citrusleaf/cf_log_internal.h>
+ Include dependency graph for _log.h:

Go to the source code of this file.

Macros

#define _log_debug(__fmt,...)   cf_debug("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);
 
#define _log_error(__fmt,...)   cf_error("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);
 
#define _log_info(__fmt,...)   cf_info("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);
 
#define _log_warn(__fmt,...)   cf_warn("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);
 
#define as_debug(__ctx, __fmt,...)
 
#define as_err(__ctx, __fmt,...)
 
#define as_info(__ctx, __fmt,...)
 
#define as_trace(__ctx, __fmt,...)
 
#define as_warn(__ctx, __fmt,...)
 
#define LOGGER   &as->log
 

Macro Definition Documentation

#define _log_debug (   __fmt,
  ... 
)    cf_debug("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);

Definition at line 41 of file _log.h.

#define _log_error (   __fmt,
  ... 
)    cf_error("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);

Definition at line 50 of file _log.h.

#define _log_info (   __fmt,
  ... 
)    cf_info("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);

Definition at line 44 of file _log.h.

#define _log_warn (   __fmt,
  ... 
)    cf_warn("@%s[%s:%d] - "__fmt, __func__, __FILE__, __LINE__, ##__VA_ARGS__);

Definition at line 47 of file _log.h.

#define as_debug (   __ctx,
  __fmt,
  ... 
)
Value:
if ( (__ctx) && (__ctx)->callback && AS_LOG_LEVEL_DEBUG <= (__ctx)->level ) {\
((as_log_callback) (__ctx)->callback)(AS_LOG_LEVEL_DEBUG, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
}
bool(* as_log_callback)(as_log_level level, const char *func, const char *file, uint32_t line, const char *fmt,...)

Definition at line 27 of file _log.h.

#define as_err (   __ctx,
  __fmt,
  ... 
)
Value:
if ( (__ctx) && (__ctx)->callback && AS_LOG_LEVEL_ERROR <= (__ctx)->level ) {\
((as_log_callback) (__ctx)->callback)(AS_LOG_LEVEL_ERROR, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
}
bool(* as_log_callback)(as_log_level level, const char *func, const char *file, uint32_t line, const char *fmt,...)

Definition at line 12 of file _log.h.

#define as_info (   __ctx,
  __fmt,
  ... 
)
Value:
if ( (__ctx) && (__ctx)->callback && AS_LOG_LEVEL_INFO <= (__ctx)->level ) {\
((as_log_callback) (__ctx)->callback)(AS_LOG_LEVEL_INFO, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
}
bool(* as_log_callback)(as_log_level level, const char *func, const char *file, uint32_t line, const char *fmt,...)

Definition at line 22 of file _log.h.

#define as_trace (   __ctx,
  __fmt,
  ... 
)
Value:
if ( (__ctx) && (__ctx)->callback && AS_LOG_LEVEL_TRACE <= (__ctx)->level ) {\
((as_log_callback) (__ctx)->callback)(AS_LOG_LEVEL_TRACE, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
}
bool(* as_log_callback)(as_log_level level, const char *func, const char *file, uint32_t line, const char *fmt,...)

Definition at line 32 of file _log.h.

#define as_warn (   __ctx,
  __fmt,
  ... 
)
Value:
if ( (__ctx) && (__ctx)->callback && AS_LOG_LEVEL_WARN <= (__ctx)->level ) {\
((as_log_callback) (__ctx)->callback)(AS_LOG_LEVEL_WARN, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
}
bool(* as_log_callback)(as_log_level level, const char *func, const char *file, uint32_t line, const char *fmt,...)

Definition at line 17 of file _log.h.

#define LOGGER   &as->log

Definition at line 10 of file _log.h.