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 77 of file logger.hpp.

Constructor & Destructor Documentation

◆ Logger()

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

Definition at line 95 of file logger.cpp.

Member Function Documentation

◆ getModuleName()

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

Definition at line 87 of file logger.hpp.

◆ isLevelEnabled()

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

Definition at line 93 of file logger.hpp.

◆ registerModuleName()

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

Definition at line 107 of file logger.cpp.

◆ setLevel()

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

Definition at line 99 of file logger.hpp.