hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
cf_log_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright 2012 Aerospike. All rights reserved.
3
*/
4
#pragma once
5
6
#include "
cf_log.h
"
7
8
//====================================================================
9
// Internal API - for use by Aerospike client only
10
//
11
12
#ifndef CF_WINDOWS
13
//====================================================================
14
// Linux
15
//
16
17
#define cf_error(__fmt, __args...) \
18
if (CF_ERROR <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_ERROR, __fmt, ## __args);}
19
20
#define cf_warn(__fmt, __args...) \
21
if (CF_WARN <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_WARN, __fmt, ## __args);}
22
23
#define cf_info(__fmt, __args...) \
24
if (CF_INFO <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_INFO, __fmt, ## __args);}
25
26
#define cf_debug(__fmt, __args...) \
27
if (CF_DEBUG <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_DEBUG, __fmt, ## __args);}
28
29
30
#else // CF_WINDOWS
31
//====================================================================
32
// Windows
33
//
34
35
#define cf_error(__fmt, ...) \
36
if (CF_ERROR <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_ERROR, __fmt, ## __VA_ARGS__);}
37
38
#define cf_warn(__fmt, ...) \
39
if (CF_WARN <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_WARN, __fmt, ## __VA_ARGS__);}
40
41
#define cf_info(__fmt, ...) \
42
if (CF_INFO <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_INFO, __fmt, ## __VA_ARGS__);}
43
44
#define cf_debug(__fmt, ...) \
45
if (CF_DEBUG <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_DEBUG, __fmt, ## __VA_ARGS__);}
46
47
48
#endif // CF_WINDOWS
sources
utils
kvdb
src
citrusleaf
cf_log_internal.h
Generated on Tue Jun 30 2015 19:42:13 for hce-node application by
1.8.1.2