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. More...

Macros

#define NFD_LOG_CHAN_DEBUG(msg)   NFD_LOG_CHAN(DEBUG, msg)
 Log a message at DEBUG level. More...
 
#define NFD_LOG_CHAN_ERROR(msg)   NFD_LOG_CHAN(ERROR, msg)
 Log a message at ERROR level. More...
 
#define NFD_LOG_CHAN_INFO(msg)   NFD_LOG_CHAN(INFO, msg)
 Log a message at INFO level. More...
 
#define NFD_LOG_CHAN_TRACE(msg)   NFD_LOG_CHAN(TRACE, msg)
 Log a message at TRACE level. More...
 
#define NFD_LOG_CHAN_WARN(msg)   NFD_LOG_CHAN(WARN, msg)
 Log a message at WARN 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

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

Log a message at DEBUG level.

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

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

Log a message at ERROR level.

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

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

Log a message at INFO level.

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

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

Log a message at TRACE level.

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

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

Log a message at WARN level.

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