nfd::Logger Class Reference

provides logging for a module More...

#include <core/logger.hpp>

Public Member Functions

 Logger (const std::string &name, LogLevel level)
 
const std::string & getName () const
 
bool isEnabled (LogLevel level) const
 
void setLogLevel (LogLevel level)
 
void setName (const std::string &name)
 

Public Attributes

boost::log::sources::logger boostLogger
 

Detailed Description

provides logging for a module

Note
This type is internal. Logger should be accessed through NFD_LOG_* macros.
This type is copyable because logger can be declared as a field of (usually template) classes, and shouldn't prevent those classes to be copyable.

Definition at line 58 of file logger.hpp.

Constructor & Destructor Documentation

nfd::Logger::Logger ( const std::string &  name,
LogLevel  level 
)

Definition at line 39 of file logger.cpp.

Member Function Documentation

const std::string& nfd::Logger::getName ( ) const
inline

Definition at line 76 of file logger.hpp.

bool nfd::Logger::isEnabled ( LogLevel  level) const
inline

Definition at line 64 of file logger.hpp.

void nfd::Logger::setLogLevel ( LogLevel  level)
inline

Definition at line 70 of file logger.hpp.

void nfd::Logger::setName ( const std::string &  name)
inline

Definition at line 82 of file logger.hpp.

Member Data Documentation

boost::log::sources::logger nfd::Logger::boostLogger

Definition at line 88 of file logger.hpp.