NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
n
p
r
s
u
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
f
i
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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