OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sandesh_connection.cc File Reference
#include <io/tcp_session.h>
#include <io/tcp_server.h>
#include <base/logging.h>
#include <sandesh/protocol/TXMLProtocol.h>
#include <sandesh/sandesh_types.h>
#include <sandesh/sandesh.h>
#include <sandesh/sandesh_ctrl_types.h>
#include <sandesh/common/vns_types.h>
#include <sandesh/common/vns_constants.h>
#include "sandesh_uve.h"
#include "sandesh_session.h"
#include "sandesh_client.h"
#include "sandesh_server.h"
#include "sandesh_connection.h"
Include dependency graph for sandesh_connection.cc:

Go to the source code of this file.

Classes

class  SandeshServerConnection::DeleteActor
 

Macros

#define CONNECTION_LOG(_Level, _Msg)
 

Macro Definition Documentation

#define CONNECTION_LOG (   _Level,
  _Msg 
)
Value:
do { \
if (LoggingDisabled()) break; \
log4cplus::Logger _Xlogger = Sandesh::logger(); \
if (_Xlogger.isEnabledFor(log4cplus::_Level##_LOG_LEVEL)) { \
log4cplus::tostringstream _Xbuf; \
if (!state_machine()->generator_key().empty()) { \
_Xbuf << state_machine()->generator_key() << " (" << \
GetTaskInstance() << ") "; \
} \
if (session()) { \
_Xbuf << session()->ToString() << " "; \
} \
_Xbuf << _Msg; \
_Xlogger.forcedLog(log4cplus::_Level##_LOG_LEVEL, \
_Xbuf.str()); \
} \
} while (false)
bool LoggingDisabled()
Definition: logging.cc:24

Definition at line 30 of file sandesh_connection.cc.