ndn::util::Logger Class Reference

represents a logger in logging facility More...

#include <logger.hpp>

+ Inheritance diagram for ndn::util::Logger:
+ Collaboration diagram for ndn::util::Logger:

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

Note
User should declare a new logger with NDN_LOG_INIT macro.

Definition at line 66 of file logger.hpp.

Constructor & Destructor Documentation

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

Definition at line 102 of file logger.cpp.

Member Function Documentation

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

Definition at line 73 of file logger.hpp.

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

Definition at line 79 of file logger.hpp.

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

Definition at line 85 of file logger.hpp.