userver: userver/logging/null_logger.hpp Source File
Loading...
Searching...
No Matches
null_logger.hpp
Go to the documentation of this file.
1#pragma once
2
5
7
8USERVER_NAMESPACE_BEGIN
9
10namespace logging {
11
14TextLoggerRef GetNullLogger() noexcept;
15
21TextLoggerPtr MakeNullLogger();
22
23namespace impl {
24
25// Creates a logger that drops all incoming messages, but
26// * reports log level INFO (customizable) to force forming those messages;
27// * uses Formats::kRaw to produce reasonable CPU usage for formatting logs.
28TextLoggerPtr MakeNoopLoggerForTests();
29
30} // namespace impl
31
32} // namespace logging
33
34USERVER_NAMESPACE_END