#include <levels.h>
Public Member Functions | |
virtual | ~LogLevel () |
Destructor. | |
virtual bool | operator== (std::string const &name) const |
Checks for log level match. | |
virtual char const * | header () const |
Returns the log level header. |
The operator==() method must be overriden in derived classes. The header() method may be overriden too.
virtual bool xlog::LogLevel::operator== | ( | std::string const & | name | ) | const [inline, virtual] |
Checks whether a given name matches with the name of this log level or any of the class ancestor names.
Derived classes must call the inherited method (the LogLevel implementation matches the name "*").
[in] | name | The name to check. |
virtual char const* xlog::LogLevel::header | ( | ) | const [inline, virtual] |
Returns the log level header, that identifies the log level in a human-friendly way and may or may not be logged as a header to log messages by log modules.