Go to the documentation of this file.
24 #include <citrusleaf/cf_log.h>
35 #define cf_error(__fmt, __args...) \
36 if (CF_ERROR <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_ERROR, __fmt, ## __args);}
38 #define cf_warn(__fmt, __args...) \
39 if (CF_WARN <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_WARN, __fmt, ## __args);}
41 #define cf_info(__fmt, __args...) \
42 if (CF_INFO <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_INFO, __fmt, ## __args);}
44 #define cf_debug(__fmt, __args...) \
45 if (CF_DEBUG <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_DEBUG, __fmt, ## __args);}
53 #define cf_error(__fmt, ...) \
54 if (CF_ERROR <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_ERROR, __fmt, ## __VA_ARGS__);}
56 #define cf_warn(__fmt, ...) \
57 if (CF_WARN <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_WARN, __fmt, ## __VA_ARGS__);}
59 #define cf_info(__fmt, ...) \
60 if (CF_INFO <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_INFO, __fmt, ## __VA_ARGS__);}
62 #define cf_debug(__fmt, ...) \
63 if (CF_DEBUG <= G_LOG_LEVEL) {(*G_LOG_CB)(CF_DEBUG, __fmt, ## __VA_ARGS__);}