NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
face-log.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FACE_FACE_LOG_HPP
27 #define NFD_DAEMON_FACE_FACE_LOG_HPP
28 
29 #include "core/logger.hpp"
30 
31 namespace nfd {
32 namespace face {
33 
42 template<typename T>
44 {
45 public:
46  explicit
47  FaceLogHelper(const T& obj1)
48  : obj(obj1)
49  {
50  }
51 
52 public:
53  const T& obj;
54 };
55 
65 #define NFD_LOG_FACE(level, msg) NFD_LOG_##level( \
66  ::nfd::face::FaceLogHelper< \
67  typename std::remove_cv< \
68  typename std::remove_reference<decltype(*this)>::type \
69  >::type \
70  >(*this) \
71  << msg)
72 
74 #define NFD_LOG_FACE_TRACE(msg) NFD_LOG_FACE(TRACE, msg)
75 
77 #define NFD_LOG_FACE_DEBUG(msg) NFD_LOG_FACE(DEBUG, msg)
78 
80 #define NFD_LOG_FACE_INFO(msg) NFD_LOG_FACE(INFO, msg)
81 
83 #define NFD_LOG_FACE_WARN(msg) NFD_LOG_FACE(WARN, msg)
84 
86 #define NFD_LOG_FACE_ERROR(msg) NFD_LOG_FACE(ERROR, msg)
87 
90 } // namespace face
91 } // namespace nfd
92 
93 #endif // NFD_DAEMON_FACE_FACE_LOG_HPP
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
FaceLogHelper(const T &obj1)
Definition: face-log.hpp:47
for internal use by FaceLogging macros
Definition: face-log.hpp:43