OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

#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)
#define CONFIG_CLIENT_DEBUG_LOG(obj, category,...)
#define CONFIG_CLIENT_TRACE(obj,...)
Definition: trace.h:220

Definition at line 25 of file config_client_log.h.

#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.

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

Definition at line 39 of file config_client_log.h.

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

Definition at line 44 of file config_client_log.h.

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

Definition at line 32 of file config_client_log.h.

#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)
#define CONFIG_CLIENT_WARN_LOG(obj, category,...)
#define CONFIG_CLIENT_TRACE(obj,...)
Definition: trace.h:220

Definition at line 62 of file config_client_log.h.

#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)
bool LoggingDisabled()
Definition: logging.cc:24

Definition at line 54 of file config_client_log.h.

Variable Documentation

SandeshTraceBufferPtr ConfigClientRabbitMsgTraceBuf
SandeshTraceBufferPtr ConfigClientTraceBuf