NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
logger.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_CORE_LOGGER_HPP
27
#define NFD_CORE_LOGGER_HPP
28
29
#include "
common.hpp
"
30
#include "ns3/log.h"
31
32
namespace
nfd
{
33
34
#define NFD_LOG_INIT(name) NS_LOG_COMPONENT_DEFINE("nfd." name);
35
36
#define NFD_LOG_INCLASS_DECLARE() \
37
static ns3::LogComponent g_log
38
39
#define NFD_LOG_INCLASS_DEFINE(cls, name) \
40
ns3::LogComponent cls::g_log = ns3::LogComponent ("nfd." name, __FILE__)
41
42
#define NFD_LOG_INCLASS_TEMPLATE_DEFINE(cls, name) \
43
template<class T> \
44
ns3::LogComponent cls<T>::g_log = ns3::LogComponent ("nfd." name, __FILE__)
45
46
#define NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(cls, specialization, name) \
47
template<> \
48
ns3::LogComponent cls<specialization>::g_log = ns3::LogComponent ("nfd." name, __FILE__)
49
50
#define NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE(cls, s1, s2, name) \
51
template<> \
52
s3::LogComponent cls<s1, s2>::g_log = ns3::LogComponent ("nfd." name, __FILE__)
53
54
#define NFD_LOG_TRACE(expression) NS_LOG_LOGIC(expression)
55
#define NFD_LOG_DEBUG(expression) NS_LOG_DEBUG(expression)
56
#define NFD_LOG_INFO(expression) NS_LOG_INFO(expression)
57
#define NFD_LOG_ERROR(expression) NS_LOG_ERROR(expression)
58
#define NFD_LOG_WARN(expression) NS_LOG_WARN(expression)
59
#define NFD_LOG_FATAL(expression) NS_LOG_FATAL(expression)
60
61
}
// namespace nfd
62
63
#endif // NFD_CORE_LOGGER_HPP
common.hpp
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndnSIM
NFD
core
logger.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13