userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
level.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <cstdint>
7
#include <optional>
8
#include <string>
9
10
USERVER_NAMESPACE_BEGIN
11
13
namespace
logging
{
14
16
enum class
Level
: std::uint8_t {
17
kTrace
= 0,
18
kDebug
= 1,
19
kInfo
= 2,
20
kWarning
= 3,
21
kError
= 4,
22
kCritical
= 5,
23
kNone
= 6,
24
};
25
26
inline
constexpr
auto
kLevelMax =
static_cast<
int
>
(
Level::kNone
);
27
30
Level
LevelFromString
(std::string_view);
31
33
std::string_view
ToString
(
Level
level);
34
36
std::string_view
ToUpperCaseString
(
Level
level)
noexcept
;
37
40
std::optional<Level>
OptionalLevelFromString
(
const
std::optional<std::string>& level_name);
41
42
}
// namespace logging
43
44
USERVER_NAMESPACE_END
userver
logging
level.hpp
Generated on
for userver by
Doxygen
1.17.0