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 |
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.
#define NFD_LOG_FACE | ( | level, | |
msg | |||
) |
#define NFD_LOG_FACE_TRACE | ( | msg | ) | NFD_LOG_FACE(TRACE, msg) |
Log a message at TRACE level.
Definition at line 321 of file face.hpp.
Referenced by nfd::EthernetFace::close(), nfd::DatagramFace< Protocol, Addressing >::closeSocket(), nfd::StreamFace< Protocol, FaceBase >::deferredClose(), nfd::StreamFace< Protocol, FaceBase >::handleReceive(), nfd::WebSocketFace::handleReceive(), nfd::StreamFace< Protocol, FaceBase >::handleSend(), nfd::DatagramFace< Protocol, Addressing >::handleSend(), nfd::DatagramFace< Protocol, Addressing >::keepFaceAliveUntilAllHandlersExecuted(), nfd::DatagramFace< Protocol, Addressing >::receiveDatagram(), nfd::StreamFace< Protocol, FaceBase >::sendData(), nfd::MulticastUdpFace::sendData(), nfd::DatagramFace< Protocol, Addressing >::sendData(), nfd::WebSocketFace::sendData(), nfd::EthernetFace::sendData(), nfd::StreamFace< Protocol, FaceBase >::sendInterest(), nfd::MulticastUdpFace::sendInterest(), nfd::DatagramFace< Protocol, Addressing >::sendInterest(), nfd::WebSocketFace::sendInterest(), nfd::EthernetFace::sendInterest(), and nfd::StreamFace< Protocol, FaceBase >::shutdownSocket().
#define NFD_LOG_FACE_DEBUG | ( | msg | ) | NFD_LOG_FACE(DEBUG, msg) |
Log a message at DEBUG level.
Definition at line 324 of file face.hpp.
Referenced by nfd::EthernetFace::close(), nfd::EthernetFace::EthernetFace(), and nfd::DatagramFace< Protocol, Addressing >::processErrorCode().
#define NFD_LOG_FACE_INFO | ( | msg | ) | NFD_LOG_FACE(INFO, msg) |
Log a message at INFO level.
Definition at line 327 of file face.hpp.
Referenced by nfd::StreamFace< Protocol, FaceBase >::close(), nfd::DatagramFace< Protocol, Addressing >::close(), nfd::WebSocketFace::close(), nfd::EthernetFace::close(), nfd::DatagramFace< Protocol, Addressing >::DatagramFace(), nfd::EthernetFace::EthernetFace(), nfd::UdpFace::getFaceStatus(), nfd::StreamFace< Protocol, FaceBase >::StreamFace(), and nfd::WebSocketFace::WebSocketFace().
#define NFD_LOG_FACE_WARN | ( | msg | ) | NFD_LOG_FACE(WARN, msg) |
Log a message at WARN level.
Definition at line 330 of file face.hpp.
Referenced by nfd::EthernetFace::close(), nfd::EthernetFace::EthernetFace(), nfd::StreamFace< Protocol, FaceBase >::handleReceive(), nfd::WebSocketFace::handleReceive(), nfd::StreamFace< Protocol, FaceBase >::processErrorCode(), nfd::DatagramFace< Protocol, Addressing >::processErrorCode(), nfd::DatagramFace< Protocol, Addressing >::receiveDatagram(), nfd::WebSocketFace::sendData(), nfd::WebSocketFace::sendInterest(), and nfd::UdpFace::UdpFace().
#define NFD_LOG_FACE_ERROR | ( | msg | ) | NFD_LOG_FACE(ERROR, msg) |
|
inline |
Definition at line 303 of file face.hpp.
Referenced by ns3::ndn::NetDeviceFace::NetDeviceFace().