#include <CLogger.hpp>
freedm::broker::CLocalLogger::CLocalLogger |
( |
const std::string |
loggername | ) |
|
- Description:
- Tracks the loggers available to the namespace the logger is instantiated in. Loggers can share names. Loggers are typically declared as static members of the files that the logger is used in.
- Limitations:
- Logging in header files is kind of hacky: the logger must have a globally unique name, where the those in cpps can share one name since they are declared statically.
CLocalLogger::CLocalLogger
- Description:
- Constructor for the CLocalLogger, an object that manages a a group of CLogs of differing output levels.
- Parameters
-
loggername | The name of this logger set. |
- Precondition:
- None
- Postcondition:
- Creates log levels 0-8 for the logger specified by loggername. Registers this local logger with the GlobalLogger.
std::string freedm::broker::CLocalLogger::GetName |
( |
| ) |
const |
CLocalLogger::GetName
- Description:
- Gets the name of this logger
- Precondition:
- None
- Postcondition:
- None
- Returns
- The name of the logger.
unsigned int freedm::broker::CLocalLogger::GetOutputLevel |
( |
| ) |
const |
CLocalLogger::GetOutputLevel
- Description:
- Gets the logger's output level, which decides how verbose the logger will be
- Precondition:
- None
- Postcondition:
- None
- Returns
- The output level of this logger.
void freedm::broker::CLocalLogger::SetOutputLevel |
( |
const unsigned int |
level | ) |
|
CLocalLogger::SetOutputLevel
- Description:
- Sets the logger's output level, which describes how verbose the logger is
- Precondition:
- None
- Postcondition:
- The level value is stored in the GlobalLogger.
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Alert |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Debug |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Error |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Fatal |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Info |
const std::string freedm::broker::CLocalLogger::m_name |
|
private |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Notice |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Status |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Trace |
boost::iostreams::stream<CLog> freedm::broker::CLocalLogger::Warn |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/freedm/checkouts/latest/Broker/src/CLogger.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/freedm/checkouts/latest/Broker/src/CLogger.cpp