userver: userver/logging/format.hpp Source File
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
format.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/logging/format.hpp
4/// @brief Log formats
5
6#include <string_view>
7
8USERVER_NAMESPACE_BEGIN
9
10namespace logging {
11
12/// @brief Text-based log formats
13///
14/// For otlp logs, see @ref scripts/docs/en/userver/logging.md
15enum class Format {
16 kTskv,
17 kLtsv,
18 kRaw,
19 kJson,
20 kJsonYaDeploy,
21};
22
23/// Parse Format enum from string
24Format FormatFromString(std::string_view format_str);
25
26} // namespace logging
27
28USERVER_NAMESPACE_END