NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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...
 

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, LinkService, Transport subclasses.

Macro Definition Documentation

◆ NFD_LOG_FACE

#define NFD_LOG_FACE (   level,
  msg 
)
Value:
NFD_LOG_##level( \
typename std::remove_cv< \
typename std::remove_reference<decltype(*this)>::type \
>::type \
>(*this) \
<< msg)
for internal use by FaceLogging macros
Definition: face-log.hpp:43

Definition at line 65 of file face-log.hpp.

◆ NFD_LOG_FACE_TRACE

#define NFD_LOG_FACE_TRACE (   msg)    NFD_LOG_FACE(TRACE, msg)

Log a message at TRACE level.

Definition at line 74 of file face-log.hpp.

Referenced by nfd::face::MulticastUdpTransport::beforeChangePersistency(), nfd::face::EthernetTransport::beforeChangePersistency(), nfd::face::WebSocketTransport::beforeChangePersistency(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::deferredClose(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::doClose(), nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::doClose(), nfd::face::InternalForwarderTransport::doClose(), nfd::face::EthernetTransport::doClose(), nfd::face::WebSocketTransport::doClose(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::doSend(), nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::doSend(), nfd::face::GenericLinkService::GenericLinkService(), nfd::face::TcpTransport::handleError(), nfd::face::WebSocketTransport::handlePong(), nfd::face::WebSocketTransport::handlePongTimeout(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::handleReceive(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::handleSend(), nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::handleSend(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::processErrorCode(), nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::processErrorCode(), nfd::face::LinkService::receiveData(), nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::receiveDatagram(), nfd::face::LpReassembler::receiveFragment(), nfd::face::InternalForwarderTransport::receiveFromLink(), nfd::face::LinkService::receiveInterest(), nfd::face::WebSocketTransport::receiveMessage(), nfd::face::LinkService::receiveNack(), nfd::face::Transport::send(), nfd::face::LinkService::sendData(), nfd::face::LinkService::sendInterest(), and nfd::face::LinkService::sendNack().

◆ NFD_LOG_FACE_DEBUG

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

◆ NFD_LOG_FACE_INFO

◆ NFD_LOG_FACE_WARN

◆ NFD_LOG_FACE_ERROR

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

Log a message at ERROR level.

Definition at line 86 of file face-log.hpp.

Referenced by nfd::face::EthernetTransport::doClose().