Static class that contains helper functions for el::Level.
More...
#include <easylogging++.h>
Static class that contains helper functions for el::Level.
Definition at line 616 of file easylogging++.h.
◆ castFromInt()
Casts int(ushort) to level, useful for iterating through enum.
Definition at line 627 of file easylogging++.h.
627 {
628 return static_cast<Level>(l);
629 }
Level
Represents enumeration for severity level used to determine level of logging.
◆ castToInt()
Casts level to int, useful for iterating through enum.
Definition at line 623 of file easylogging++.h.
◆ convertFromString()
| Level el::LevelHelper::convertFromString |
( |
const char * | levelStr | ) |
|
|
static |
Converts from levelStr to Level.
- Parameters
-
| levelStr | Upper case string based level. Lower case is also valid but providing upper case is recommended. |
◆ convertFromStringPrefix()
| Level el::LevelHelper::convertFromStringPrefix |
( |
const char * | levelStr | ) |
|
|
static |
Converts from prefix of levelStr to Level.
- Parameters
-
| levelStr | Upper case string based level. Lower case is also valid but providing upper case is recommended. |
◆ convertToString()
| const char * el::LevelHelper::convertToString |
( |
Level | level | ) |
|
|
static |
Converts level to associated const char*.
- Returns
- Upper case string based level.
◆ forEachLevel()
| void el::LevelHelper::forEachLevel |
( |
base::type::EnumType * | startIndex, |
|
|
const std::function< bool(void)> & | fn ) |
|
static |
Applies specified function to each level starting from startIndex.
- Parameters
-
| startIndex | initial value to start the iteration from. This is passed as pointer and is left-shifted so this can be used inside function (fn) to represent current level. |
| fn | function to apply with each level. This bool represent whether or not to stop iterating through levels. |
◆ kMaxValid
Represents maximum valid level. This is used internally and you should not need it.
Definition at line 621 of file easylogging++.h.
◆ kMinValid
Represents minimum valid level. Useful when iterating through enum.
Definition at line 619 of file easylogging++.h.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/easylogging++/easylogging++.h