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 <atomic>
#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.


class  ndn::util::Logger
 represents a logger in logging facility More...
struct  ndn::util::LoggerTimestamp
 a tag that writes a timestamp upon stream output More...


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


 declare a log module More...
#define NDN_LOG_TRACE(expression)   NS_LOG_LOGIC(expression)
#define NDN_LOG_DEBUG(expression)   NS_LOG_DEBUG(expression)
#define NDN_LOG_INFO(expression)   NS_LOG_INFO(expression)
#define NDN_LOG_WARN(expression)   NS_LOG_ERROR(expression)
#define NDN_LOG_ERROR(expression)   NS_LOG_WARN(expression)
#define NDN_LOG_FATAL(expression)   NS_LOG_FATAL(expression)


enum  ndn::util::LogLevel {
  ndn::util::LogLevel::FATAL = -1, ndn::util::LogLevel::NONE = 0, ndn::util::LogLevel::ERROR = 1, ndn::util::LogLevel::WARN = 2,
  ndn::util::LogLevel::INFO = 3, ndn::util::LogLevel::DEBUG = 4, ndn::util::LogLevel::TRACE = 5, ndn::util::LogLevel::ALL = 255
 indicates the severity level of a log message More...


std::ostream & ndn::util::operator<< (std::ostream &os, LogLevel level)
 output LogLevel as string More...
LogLevel ndn::util::parseLogLevel (const std::string &s)
 parse LogLevel from string More...
std::ostream & ndn::util::operator<< (std::ostream &os, const LoggerTimestamp &)
 write a timestamp to os More...

Macro Definition Documentation



declare a log module

Definition at line 97 of file logger.hpp.


#define NDN_LOG_TRACE (   expression)    NS_LOG_LOGIC(expression)

Definition at line 114 of file logger.hpp.


#define NDN_LOG_DEBUG (   expression)    NS_LOG_DEBUG(expression)

Definition at line 115 of file logger.hpp.


#define NDN_LOG_INFO (   expression)    NS_LOG_INFO(expression)

Definition at line 116 of file logger.hpp.


#define NDN_LOG_WARN (   expression)    NS_LOG_ERROR(expression)

Definition at line 117 of file logger.hpp.

Referenced by ndn::mgmt::Dispatcher::addNotificationStream().


#define NDN_LOG_ERROR (   expression)    NS_LOG_WARN(expression)

Definition at line 118 of file logger.hpp.

Referenced by ndn::mgmt::Dispatcher::removeTopPrefix().


#define NDN_LOG_FATAL (   expression)    NS_LOG_FATAL(expression)

Definition at line 119 of file logger.hpp.