#include <Level.hh>
|
static const std::string & | get_name (Value level) |
| Returns the name of the given level value. More...
|
|
static Value | get_value (const std::string &level_name) throw (std::invalid_argument) |
| Returns the value of the given level name. More...
|
|
◆ Value
The type of Level Values.
◆ LevelLevel
Levels of Priorities.
Enumerator |
---|
OFF | |
FATAL | |
ERROR | |
WARN | |
INFO | |
DEBUG | |
◆ get_name()
const std::string & log4tango::Level::get_name |
( |
Value |
level | ) |
|
|
static |
Returns the name of the given level value.
Currently, if the value is not one of the LevelLevel values, the method returns the name of the largest level smaller the given value.
- Parameters
-
level | the numeric value of the level. |
- Returns
- a string representing the name of the level.
◆ get_value()
Level::Value log4tango::Level::get_value |
( |
const std::string & |
level_name | ) |
|
throw | ( | std::invalid_argument |
| ) | | |
|
static |
Returns the value of the given level name.
This can be either one of "OFF", "ERRROR", ... or a decimal string representation of the value, e.g. '500' for DEBUG.
- Parameters
-
level_name | the string containing the the of the level |
- Returns
- the value corresponding with the level name
- Exceptions
-
std::invalid_argument | if the level_name does not correspond with a known Level name or a number |
The documentation for this class was generated from the following files: