OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
eql_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 eql_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EQL_TRACE_BUF   "EtcdClientTraceBuf"
 
#define EQL_DEBUG_LOG(obj, category,...)
 
#define EQL_DEBUG(obj, arg)
 
#define EQL_TRACE(obj,...)
 
#define EQL_DEBUG_ONLY(obj,...)
 
#define EQL_WARN_LOG(obj, category,...)
 
#define EQL_WARN(obj,...)
 

Variables

SandeshTraceBufferPtr EqlTraceBuf
 

Macro Definition Documentation

#define EQL_DEBUG (   obj,
  arg 
)
Value:
do { \
if (LoggingDisabled()) break; \
std::ostringstream _os; \
_os << arg; \
EQL_DEBUG_LOG(obj, Category::EQL, _os.str()); \
EQL_TRACE(obj##Trace, _os.str()); \
} while (false)
#define EQL_DEBUG_LOG(obj, category,...)
Definition: eql_log.h:17
#define EQL_TRACE(obj,...)
Definition: eql_log.h:35
bool LoggingDisabled()
Definition: logging.cc:24

Definition at line 25 of file eql_log.h.

#define EQL_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 eql_log.h.

#define EQL_DEBUG_ONLY (   obj,
  ... 
)
Value:
do { \
EQL_DEBUG_LOG(obj, Category::EQL, __VA_ARGS__); \
} while (false)
#define EQL_DEBUG_LOG(obj, category,...)
Definition: eql_log.h:17

Definition at line 42 of file eql_log.h.

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

Definition at line 35 of file eql_log.h.

#define EQL_TRACE_BUF   "EtcdClientTraceBuf"

Definition at line 12 of file eql_log.h.

#define EQL_WARN (   obj,
  ... 
)
Value:
do { \
EQL_WARN_LOG(obj, Category::EQL, __VA_ARGS__); \
EQL_TRACE(obj##Trace, __VA_ARGS__); \
} while (false)
#define EQL_WARN_LOG(obj, category,...)
Definition: eql_log.h:49
#define EQL_TRACE(obj,...)
Definition: eql_log.h:35
Definition: trace.h:220

Definition at line 57 of file eql_log.h.

#define EQL_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 49 of file eql_log.h.

Variable Documentation

SandeshTraceBufferPtr EqlTraceBuf