Log levels.
More...
#include <optional>
#include <string>
Go to the source code of this file.
|
namespace | logging |
| Logging macro and utilities.
|
|
|
enum class | logging::Level {
kTrace = 0
,
kDebug = 1
,
kInfo = 2
,
kWarning = 3
,
kError = 4
,
kCritical = 5
,
kNone = 6
} |
| Log levels. More...
|
|
|
Level | logging::LevelFromString (std::string_view) |
| Converts lowercase level name to a corresponding Level, throws std::runtime_error if no matching log level found.
|
|
std::string_view | logging::ToString (Level level) |
| Returns a string representation of logging level, e.g. "info".
|
|
std::string_view | logging::ToUpperCaseString (Level level) noexcept |
| Returns a string representation of logging level, e.g. "INFO".
|
|
std::optional< Level > | logging::OptionalLevelFromString (const std::optional< std::string > &level_name) |
| Returns std::nullopt if level_name is std::nullopt, otherwise behaves exactly like logging::LevelFromString.
|
|
Log levels.
Definition in file level.hpp.