userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
logger.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <memory>
7
#include <string>
8
#include <string_view>
9
10
#include <
userver/logging/format.hpp
>
11
#include <
userver/logging/fwd.hpp
>
12
#include <
userver/logging/level.hpp
>
13
14
USERVER_NAMESPACE_BEGIN
15
16
namespace
logging
{
17
18
namespace
impl {
19
20
class
TagWriter;
21
class
LoggerBase;
22
23
void
LogRaw(TextLogger& logger,
Level
level, std::string_view message);
24
25
}
// namespace impl
26
32
LoggerPtr
MakeStderrLogger
(
const
std::string& name,
Format
format,
Level
level =
Level::kInfo
);
33
39
LoggerPtr
MakeStdoutLogger
(
const
std::string& name,
Format
format,
Level
level =
Level::kInfo
);
40
47
LoggerPtr
MakeFileLogger
(
const
std::string& name,
const
std::string& path,
Format
format,
Level
level =
Level::kInfo
);
48
49
namespace
impl {
50
51
void
PrependCommonTags(TagWriter writer,
Level
logger_level);
52
53
}
// namespace impl
54
55
}
// namespace logging
56
57
USERVER_NAMESPACE_END
userver
logging
logger.hpp
Generated on
for userver by
Doxygen
1.17.0