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
3/// @file userver/logging/null_logger.hpp
4/// @brief @copybrief logging::MakeNullLogger()
5
6#include <userver/logging/fwd.hpp>
7
8USERVER_NAMESPACE_BEGIN
9
10namespace logging {
11
12/// @brief Returns a logger that drops all incoming messages
13/// @see components::Logging
14LoggerRef GetNullLogger() noexcept;
15
16/// @brief Creates a logger that drops all incoming messages.
17///
18/// Use GetNullLogger() is you need a reference to logger.
19///
20/// @see components::Logging
21LoggerPtr MakeNullLogger();
22
23} // namespace logging
24
25USERVER_NAMESPACE_END