#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"
Go to the source code of this file.
#define CONNECTION_LOG |
( |
|
_Level, |
|
|
|
_Msg |
|
) |
| |
Value:do { \
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)
Definition at line 30 of file sandesh_connection.cc.