#include <nap/logger.h>
Public Member Functions | |
LogLevel (const std::string &name, int level) | |
LogLevel (const LogLevel &)=delete | |
LogLevel & | operator= (const LogLevel &)=delete |
int | level () const |
const std::string & | name () const |
bool | operator< (const LogLevel &other) const |
bool | operator== (const LogLevel &other) const |
bool | operator<= (const LogLevel &other) const |
bool | operator>= (const LogLevel &other) const |
A LogLevel defines a tag for log messages associated to define what messages are output in a certain situation or configuration. Levels are ranked according to their level number. A higher number means it will be output in more situations. Examples are fatal error messages, warnings or debug messages.
LogLevel | ( | const std::string & | name, |
int | level | ||
) |
Constructor taked the name of the level and a number to indicate where this level is ranked in comparison to other levels
int level | ( | ) | const |
const std::string& name | ( | ) | const |
bool operator< | ( | const LogLevel & | other | ) | const |
bool operator<= | ( | const LogLevel & | other | ) | const |
bool operator== | ( | const LogLevel & | other | ) | const |
bool operator>= | ( | const LogLevel & | other | ) | const |