NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::util::Logger Class Reference

represents a logger in logging facility More...

#include <logger.hpp>

Public Member Functions

 Logger (const std::string &name)
const std::string & getModuleName () const
bool isLevelEnabled (LogLevel level) const
void setLevel (LogLevel level)

Detailed Description

represents a logger in logging facility

User should declare a new logger with NDN_LOG_INIT macro.

Definition at line 66 of file logger.hpp.

Constructor & Destructor Documentation

◆ Logger()

ndn::util::Logger::Logger ( const std::string &  name)

Definition at line 81 of file logger.cpp.

Member Function Documentation

◆ getModuleName()

const std::string& ndn::util::Logger::getModuleName ( ) const

Definition at line 73 of file logger.hpp.

◆ isLevelEnabled()

bool ndn::util::Logger::isLevelEnabled ( LogLevel  level) const

Definition at line 79 of file logger.hpp.

◆ setLevel()

void ndn::util::Logger::setLevel ( LogLevel  level)

Definition at line 85 of file logger.hpp.

The documentation for this class was generated from the following files: