Utilities on LogLevel. More...
Functions | |
bool | IsValidLevel (LogLevel level) |
Returns true if the given level is valid. | |
std::string | toString (LogLevel level) |
Returns a string representation of the level. | |
LogLevel | fromString (std::string) |
Converts a string to a LogLevel. |
Utilities on LogLevel.
LogLevel LogLevelUtil::fromString | ( | std::string | str | ) | [inline] |
Converts a string to a LogLevel.
Definition at line 146 of file Logger.cpp.
References ALL_COLORS, BLACK_ONLY, EMPTY_ONLY, HexAssert, LOG_LEVEL_ALL, LOG_LEVEL_CONFIG, LOG_LEVEL_FINE, LOG_LEVEL_FINER, LOG_LEVEL_INFO, LOG_LEVEL_OFF, LOG_LEVEL_SEVERE, LOG_LEVEL_WARNING, NOT_BLACK, NOT_EMPTY, NOT_WHITE, and WHITE_ONLY.
Referenced by HexProgram::InitLog(), and VCCommands::VCTypeArg().
bool LogLevelUtil::IsValidLevel | ( | LogLevel | level | ) |
Returns true if the given level is valid.
Definition at line 124 of file Logger.cpp.
References LOG_LEVEL_ALL, LOG_LEVEL_CONFIG, LOG_LEVEL_FINE, LOG_LEVEL_FINER, LOG_LEVEL_INFO, LOG_LEVEL_OFF, LOG_LEVEL_SEVERE, and LOG_LEVEL_WARNING.
std::string LogLevelUtil::toString | ( | LogLevel | level | ) |
Returns a string representation of the level.
Definition at line 134 of file Logger.cpp.
References LOG_LEVEL_ALL, LOG_LEVEL_CONFIG, LOG_LEVEL_FINE, LOG_LEVEL_FINER, LOG_LEVEL_INFO, LOG_LEVEL_SEVERE, and LOG_LEVEL_WARNING.