OpenSDN source code
config_client_log.h File Reference
#include "sandesh/sandesh_trace.h"
#include "sandesh/common/vns_types.h"
#include "sandesh/common/vns_constants.h"
Include dependency graph for config_client_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONFIG_CLIENT_DEBUG_LOG(obj, category, ...)
 
#define CONFIG_CLIENT_DEBUG(obj, ...)
 
#define CONFIG_CLIENT_TRACE(obj, ...)
 
#define CONFIG_CLIENT_DEBUG_ONLY(obj, ...)
 
#define CONFIG_CLIENT_RABBIT_MSG_TRACE(obj, ...)
 
#define CONFIG_CLIENT_WARN_LOG(obj, category, ...)
 
#define CONFIG_CLIENT_WARN(obj, ...)
 

Variables

SandeshTraceBufferPtr ConfigClientTraceBuf
 
SandeshTraceBufferPtr ConfigClientRabbitMsgTraceBuf
 

Macro Definition Documentation

◆ CONFIG_CLIENT_DEBUG

#define CONFIG_CLIENT_DEBUG (   obj,
  ... 
)
Value:
do { \
CONFIG_CLIENT_DEBUG_LOG(obj, Category::CONFIG_CLIENT, __VA_ARGS__); \
CONFIG_CLIENT_TRACE(obj##Trace, __VA_ARGS__); \
} while (false)
Definition: trace.h:220

Definition at line 25 of file config_client_log.h.

◆ CONFIG_CLIENT_DEBUG_LOG

#define CONFIG_CLIENT_DEBUG_LOG (   obj,
  category,
  ... 
)
Value:
do { \
if (!LoggingDisabled()) { \
obj::Send(g_vns_constants.CategoryNames.find(category)->second, \
SandeshLevel::SYS_DEBUG, __FILE__, __LINE__, ##__VA_ARGS__); \
} \
} while (false)
bool LoggingDisabled()
Definition: logging.cc:24

Definition at line 17 of file config_client_log.h.

◆ CONFIG_CLIENT_DEBUG_ONLY

#define CONFIG_CLIENT_DEBUG_ONLY (   obj,
  ... 
)
Value:
do { \
CONFIG_CLIENT_DEBUG_LOG(obj, Category::CONFIG_CLIENT, __VA_ARGS__); \
} while (false)

Definition at line 39 of file config_client_log.h.

◆ CONFIG_CLIENT_RABBIT_MSG_TRACE

#define CONFIG_CLIENT_RABBIT_MSG_TRACE (   obj,
  ... 
)
Value:
do { \
if (!LoggingDisabled()) { \
obj::TraceMsg(ConfigClientRabbitMsgTraceBuf, __FILE__, __LINE__, \
__VA_ARGS__); \
} \
} while (false)
SandeshTraceBufferPtr ConfigClientRabbitMsgTraceBuf

Definition at line 44 of file config_client_log.h.

◆ CONFIG_CLIENT_TRACE

#define CONFIG_CLIENT_TRACE (   obj,
  ... 
)
Value:
do { \
if (!LoggingDisabled()) { \
obj::TraceMsg(ConfigClientTraceBuf, __FILE__, __LINE__, __VA_ARGS__); \
} \
} while (false)
SandeshTraceBufferPtr ConfigClientTraceBuf

Definition at line 32 of file config_client_log.h.

◆ CONFIG_CLIENT_WARN

#define CONFIG_CLIENT_WARN (   obj,
  ... 
)
Value:
do { \
CONFIG_CLIENT_WARN_LOG(obj, Category::CONFIG_CLIENT, __VA_ARGS__); \
CONFIG_CLIENT_TRACE(obj##Trace, __VA_ARGS__); \
} while (false)

Definition at line 62 of file config_client_log.h.

◆ CONFIG_CLIENT_WARN_LOG

#define CONFIG_CLIENT_WARN_LOG (   obj,
  category,
  ... 
)
Value:
do { \
if (!LoggingDisabled()) { \
obj::Send(g_vns_constants.CategoryNames.find(category)->second, \
SandeshLevel::SYS_WARN, __FILE__, __LINE__, ##__VA_ARGS__); \
} \
} while (false)

Definition at line 54 of file config_client_log.h.

Variable Documentation

◆ ConfigClientRabbitMsgTraceBuf

SandeshTraceBufferPtr ConfigClientRabbitMsgTraceBuf
extern

◆ ConfigClientTraceBuf

SandeshTraceBufferPtr ConfigClientTraceBuf
extern