OpenSDN source code
xmpp_log.h File Reference
#include "base/logging.h"
#include "sandesh/sandesh_trace.h"
Include dependency graph for xmpp_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XMPP_MESSAGE_TRACE_BUF   "XmppMessageTrace"
 
#define XMPP_TRACE_BUF   "XmppTrace"
 
#define XMPP_PEER_DIR_OUT   "SEND"
 
#define XMPP_PEER_DIR_IN   "RECV"
 
#define XMPP_PEER_DIR_NA   ""
 
#define XMPP_ERROR(obj, ...)
 
#define XMPP_ALERT(obj, ...)
 
#define XMPP_WARNING(obj, ...)
 
#define XMPP_NOTICE(obj, ...)
 
#define XMPP_INFO(obj, ...)
 
#define XMPP_DEBUG(obj, ...)
 
#define XMPP_UTDEBUG(obj, ...)
 
#define XMPP_TRACE(obj, ...)
 
#define XMPP_MESSAGE_TRACE(obj, ...)
 
#define XMPP_CONNECTION_LOG_MSG(info)
 

Variables

SandeshTraceBufferPtr XmppMessageTraceBuf
 
SandeshTraceBufferPtr XmppTraceBuf
 

Macro Definition Documentation

◆ XMPP_ALERT

#define XMPP_ALERT (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::Send(g_vns_constants.CategoryNames.find(Category::XMPP)->second, \
SandeshLevel::SYS_ALERT, __FILE__, __LINE__, ##__VA_ARGS__); \
XMPP_TRACE(obj##Trace, ##__VA_ARGS__); \
} while (false)
bool LoggingDisabled()
Definition: logging.cc:24

Definition at line 27 of file xmpp_log.h.

◆ XMPP_CONNECTION_LOG_MSG

#define XMPP_CONNECTION_LOG_MSG (   info)
Value:
do { \
if (LoggingDisabled()) break; \
XMPP_CONNECTION_LOG_SEND(info); \
} while (false)

Definition at line 83 of file xmpp_log.h.

◆ XMPP_DEBUG

#define XMPP_DEBUG (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::Send(g_vns_constants.CategoryNames.find(Category::XMPP)->second, \
SandeshLevel::SYS_DEBUG, __FILE__, __LINE__, ##__VA_ARGS__); \
XMPP_TRACE(obj##Trace, ##__VA_ARGS__); \
} while (false)

Definition at line 59 of file xmpp_log.h.

◆ XMPP_ERROR

#define XMPP_ERROR (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::Send(g_vns_constants.CategoryNames.find(Category::XMPP)->second, \
SandeshLevel::SYS_ERR, __FILE__, __LINE__, ##__VA_ARGS__); \
} while (false)

Definition at line 18 of file xmpp_log.h.

◆ XMPP_INFO

#define XMPP_INFO (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::Send(g_vns_constants.CategoryNames.find(Category::XMPP)->second, \
SandeshLevel::SYS_INFO, __FILE__, __LINE__, ##__VA_ARGS__); \
XMPP_TRACE(obj##Trace, ##__VA_ARGS__); \
} while (false)

Definition at line 51 of file xmpp_log.h.

◆ XMPP_MESSAGE_TRACE

#define XMPP_MESSAGE_TRACE (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::TraceMsg(XmppMessageTraceBuf, __FILE__, __LINE__, ##__VA_ARGS__); \
} while (false)
SandeshTraceBufferPtr XmppMessageTraceBuf

Definition at line 78 of file xmpp_log.h.

◆ XMPP_MESSAGE_TRACE_BUF

#define XMPP_MESSAGE_TRACE_BUF   "XmppMessageTrace"

Definition at line 11 of file xmpp_log.h.

◆ XMPP_NOTICE

#define XMPP_NOTICE (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::Send(g_vns_constants.CategoryNames.find(Category::XMPP)->second, \
SandeshLevel::SYS_NOTICE, __FILE__, __LINE__, ##__VA_ARGS__); \
XMPP_TRACE(obj##Trace, ##__VA_ARGS__); \
} while (false)

Definition at line 43 of file xmpp_log.h.

◆ XMPP_PEER_DIR_IN

#define XMPP_PEER_DIR_IN   "RECV"

Definition at line 15 of file xmpp_log.h.

◆ XMPP_PEER_DIR_NA

#define XMPP_PEER_DIR_NA   ""

Definition at line 16 of file xmpp_log.h.

◆ XMPP_PEER_DIR_OUT

#define XMPP_PEER_DIR_OUT   "SEND"

Definition at line 14 of file xmpp_log.h.

◆ XMPP_TRACE

#define XMPP_TRACE (   obj,
  ... 
)
Value:
do { \
obj::TraceMsg(XmppTraceBuf, __FILE__, __LINE__, ##__VA_ARGS__); \
} while (false)
SandeshTraceBufferPtr XmppTraceBuf

Definition at line 74 of file xmpp_log.h.

◆ XMPP_TRACE_BUF

#define XMPP_TRACE_BUF   "XmppTrace"

Definition at line 12 of file xmpp_log.h.

◆ XMPP_UTDEBUG

#define XMPP_UTDEBUG (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::Send(g_vns_constants.CategoryNames.find(Category::XMPP)->second, \
Sandesh::LoggingUtLevel(), __FILE__, __LINE__, ##__VA_ARGS__); \
} while (false)

Definition at line 67 of file xmpp_log.h.

◆ XMPP_WARNING

#define XMPP_WARNING (   obj,
  ... 
)
Value:
do { \
if (LoggingDisabled()) break; \
obj::Send(g_vns_constants.CategoryNames.find(Category::XMPP)->second, \
SandeshLevel::SYS_WARN, __FILE__, __LINE__, ##__VA_ARGS__); \
XMPP_TRACE(obj##Trace, ##__VA_ARGS__); \
} while (false)

Definition at line 35 of file xmpp_log.h.

Variable Documentation

◆ XmppMessageTraceBuf

SandeshTraceBufferPtr XmppMessageTraceBuf
extern

◆ XmppTraceBuf

SandeshTraceBufferPtr XmppTraceBuf
extern