ndn::util::Logger Class Reference

Represents a log module in the logging facility. More...

#include <ndn-cxx/util/logger.hpp>

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

Public Member Functions

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

Static Public Member Functions

static void registerModuleName (const char *name)
 

Detailed Description

Represents a log module in the logging facility.

Note
Normally, loggers should be defined using NDN_LOG_INIT, NDN_LOG_MEMBER_INIT, or NDN_LOG_MEMBER_INIT_SPECIALIZED.

Definition at line 68 of file logger.hpp.

Constructor & Destructor Documentation

ndn::util::Logger::Logger ( const char *  name)
explicit

Definition at line 103 of file logger.cpp.

Member Function Documentation

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

Definition at line 78 of file logger.hpp.

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

Definition at line 84 of file logger.hpp.

void ndn::util::Logger::registerModuleName ( const char *  name)
static

Definition at line 114 of file logger.cpp.

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

Definition at line 90 of file logger.hpp.