OpenSDN source code
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

◆ EQL_DEBUG

#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_TRACE(obj,...)
Definition: eql_log.h:36
#define EQL_DEBUG_LOG(obj, category,...)
Definition: eql_log.h:18
bool LoggingDisabled()
Definition: logging.cc:56

Definition at line 26 of file eql_log.h.

◆ EQL_DEBUG_LOG

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

Definition at line 18 of file eql_log.h.

◆ EQL_DEBUG_ONLY

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

Definition at line 43 of file eql_log.h.

◆ EQL_TRACE

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

Definition at line 36 of file eql_log.h.

◆ EQL_TRACE_BUF

#define EQL_TRACE_BUF   "EtcdClientTraceBuf"

Definition at line 13 of file eql_log.h.

◆ EQL_WARN

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

Definition at line 58 of file eql_log.h.

◆ EQL_WARN_LOG

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

Definition at line 50 of file eql_log.h.

Variable Documentation

◆ EqlTraceBuf

SandeshTraceBufferPtr EqlTraceBuf
extern