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

These macros augment the log message with some channel-specific information, such as the local URI, that are useful to distinguish which channel produced the message. It is strongly recommended to use these macros instead of the generic ones for all logging inside Channel subclasses. More...

Macros

#define NFD_LOG_CHAN_TRACE(msg)   NFD_LOG_CHAN(TRACE, msg)
 Log a message at TRACE level. More...
 
#define NFD_LOG_CHAN_DEBUG(msg)   NFD_LOG_CHAN(DEBUG, msg)
 Log a message at DEBUG level. More...
 
#define NFD_LOG_CHAN_INFO(msg)   NFD_LOG_CHAN(INFO, msg)
 Log a message at INFO level. More...
 
#define NFD_LOG_CHAN_WARN(msg)   NFD_LOG_CHAN(WARN, msg)
 Log a message at WARN level. More...
 
#define NFD_LOG_CHAN_ERROR(msg)   NFD_LOG_CHAN(ERROR, msg)
 Log a message at ERROR level. More...
 

Detailed Description

These macros augment the log message with some channel-specific information, such as the local URI, that are useful to distinguish which channel produced the message. It is strongly recommended to use these macros instead of the generic ones for all logging inside Channel subclasses.

Macro Definition Documentation

◆ NFD_LOG_CHAN_TRACE

#define NFD_LOG_CHAN_TRACE (   msg)    NFD_LOG_CHAN(TRACE, msg)

Log a message at TRACE level.

Definition at line 47 of file channel-log.hpp.

◆ NFD_LOG_CHAN_DEBUG

#define NFD_LOG_CHAN_DEBUG (   msg)    NFD_LOG_CHAN(DEBUG, msg)

Log a message at DEBUG level.

Definition at line 50 of file channel-log.hpp.

◆ NFD_LOG_CHAN_INFO

#define NFD_LOG_CHAN_INFO (   msg)    NFD_LOG_CHAN(INFO, msg)

Log a message at INFO level.

Definition at line 53 of file channel-log.hpp.

◆ NFD_LOG_CHAN_WARN

#define NFD_LOG_CHAN_WARN (   msg)    NFD_LOG_CHAN(WARN, msg)

Log a message at WARN level.

Definition at line 56 of file channel-log.hpp.

◆ NFD_LOG_CHAN_ERROR

#define NFD_LOG_CHAN_ERROR (   msg)    NFD_LOG_CHAN(ERROR, msg)

Log a message at ERROR level.

Definition at line 59 of file channel-log.hpp.