NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
logger.hpp File Reference
#include "common.hpp"
#include "ns3/log.h"
Include dependency graph for logger.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nfd
 Copyright (c) 2011-2015 Regents of the University of California.
 

Macros

#define NFD_LOG_INIT(name)   NS_LOG_COMPONENT_DEFINE("nfd." name);
 
#define NFD_LOG_INCLASS_DECLARE()   static ns3::LogComponent g_log
 
#define NFD_LOG_INCLASS_DEFINE(cls, name)   ns3::LogComponent cls::g_log = ns3::LogComponent ("nfd." name, __FILE__)
 
#define NFD_LOG_INCLASS_TEMPLATE_DEFINE(cls, name)
 
#define NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(cls, specialization, name)
 
#define NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE(cls, s1, s2, name)
 
#define NFD_LOG_TRACE(expression)   NS_LOG_LOGIC(expression)
 
#define NFD_LOG_DEBUG(expression)   NS_LOG_DEBUG(expression)
 
#define NFD_LOG_INFO(expression)   NS_LOG_INFO(expression)
 
#define NFD_LOG_ERROR(expression)   NS_LOG_ERROR(expression)
 
#define NFD_LOG_WARN(expression)   NS_LOG_WARN(expression)
 
#define NFD_LOG_FATAL(expression)   NS_LOG_FATAL(expression)
 

Macro Definition Documentation

◆ NFD_LOG_INIT

#define NFD_LOG_INIT (   name)    NS_LOG_COMPONENT_DEFINE("nfd." name);

Definition at line 34 of file logger.hpp.

◆ NFD_LOG_INCLASS_DECLARE

#define NFD_LOG_INCLASS_DECLARE ( )    static ns3::LogComponent g_log

Definition at line 36 of file logger.hpp.

Referenced by nfd::face::InternalClientTransport::resume().

◆ NFD_LOG_INCLASS_DEFINE

#define NFD_LOG_INCLASS_DEFINE (   cls,
  name 
)    ns3::LogComponent cls::g_log = ns3::LogComponent ("nfd." name, __FILE__)

Definition at line 39 of file logger.hpp.

◆ NFD_LOG_INCLASS_TEMPLATE_DEFINE

#define NFD_LOG_INCLASS_TEMPLATE_DEFINE (   cls,
  name 
)
Value:
template<class T> \
ns3::LogComponent cls<T>::g_log = ns3::LogComponent ("nfd." name, __FILE__)

Definition at line 42 of file logger.hpp.

◆ NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE

#define NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE (   cls,
  specialization,
  name 
)
Value:
template<> \
ns3::LogComponent cls<specialization>::g_log = ns3::LogComponent ("nfd." name, __FILE__)

Definition at line 46 of file logger.hpp.

◆ NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE

#define NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE (   cls,
  s1,
  s2,
  name 
)
Value:
template<> \
s3::LogComponent cls<s1, s2>::g_log = ns3::LogComponent ("nfd." name, __FILE__)

Definition at line 50 of file logger.hpp.

◆ NFD_LOG_TRACE

◆ NFD_LOG_DEBUG

◆ NFD_LOG_INFO

◆ NFD_LOG_ERROR

#define NFD_LOG_ERROR (   expression)    NS_LOG_ERROR(expression)

◆ NFD_LOG_WARN

◆ NFD_LOG_FATAL

#define NFD_LOG_FATAL (   expression)    NS_LOG_FATAL(expression)

Definition at line 59 of file logger.hpp.

Referenced by main(), and nfd::NfdRunner::run().