NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Face logging macros

These macros augment the log message with some face-specific information, such as the face ID, that are useful to distinguish which face produced the message. More...

Macros

#define NFD_LOG_FACE(level, msg)
 
#define NFD_LOG_FACE_TRACE(msg)   NFD_LOG_FACE(TRACE, msg)
 Log a message at TRACE level. More...
 
#define NFD_LOG_FACE_DEBUG(msg)   NFD_LOG_FACE(DEBUG, msg)
 Log a message at DEBUG level. More...
 
#define NFD_LOG_FACE_INFO(msg)   NFD_LOG_FACE(INFO, msg)
 Log a message at INFO level. More...
 
#define NFD_LOG_FACE_WARN(msg)   NFD_LOG_FACE(WARN, msg)
 Log a message at WARN level. More...
 
#define NFD_LOG_FACE_ERROR(msg)   NFD_LOG_FACE(ERROR, msg)
 Log a message at ERROR level. More...
 

Functions

void nfd::Face::setMetric (uint64_t metric)
 
uint64_t nfd::Face::getMetric () const
 

Detailed Description

These macros augment the log message with some face-specific information, such as the face ID, that are useful to distinguish which face produced the message.

It is strongly recommended to use these macros instead of the generic ones for all logging inside Face subclasses.

Macro Definition Documentation

#define NFD_LOG_FACE (   level,
  msg 
)
Value:
NFD_LOG_##level("[id=" << this->getId() << \
",local=" << this->getLocalUri() << \
",remote=" << this->getRemoteUri() << \
"] " << msg)

Definition at line 314 of file face.hpp.

#define NFD_LOG_FACE_DEBUG (   msg)    NFD_LOG_FACE(DEBUG, msg)
#define NFD_LOG_FACE_ERROR (   msg)    NFD_LOG_FACE(ERROR, msg)

Log a message at ERROR level.

Definition at line 333 of file face.hpp.

Function Documentation

void nfd::Face::setMetric ( uint64_t  metric)
inline

Definition at line 303 of file face.hpp.

Referenced by ns3::ndn::NetDeviceFace::NetDeviceFace().

uint64_t nfd::Face::getMetric ( ) const
inline

Definition at line 309 of file face.hpp.