xRedis API  1.5.0
The C++ Client API for Redis server
 All Classes
xRedisLog.h
1 
2 #ifndef _XREDIS_LOG_H_
3 #define _XREDIS_LOG_H_
4 
5 #include "xRedisClient.h"
6 #include <stdint.h>
7 #include <stdio.h>
8 
9 namespace xrc {
10 
11 #define xredis_error(...) log_message(LOG_LEVEL_ERROR, __FUNCTION__, __LINE__, __VA_ARGS__)
12 #define xredis_warn(...) log_message(LOG_LEVEL_WARN, __FUNCTION__, __LINE__, __VA_ARGS__)
13 #define xredis_info(...) log_message(LOG_LEVEL_INFO, __FUNCTION__, __LINE__, __VA_ARGS__)
14 #define xredis_debug(...) log_message(LOG_LEVEL_DEBUG, __FUNCTION__, __LINE__, __VA_ARGS__)
15 
16 #define DATA_BUF 4096
17 
18 void log_message(uint32_t level, const char* function, int line, const char* fmt, ...);
19 void set_log_level(uint32_t level, void (*emit)(int level, const char* line));
20 
21 } // namespace xrc
22 
23 #endif

Generated on Mon Mar 21 2022 10:57:13 for xRedis API version 1.5.0.