userver
C++ Async Framework
Loading...
Searching...
No Matches
log_extra.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/ugrpc/server/middlewares/access_log/log_extra.hpp
4
/// @brief @copybrief ugrpc::server::middlewares::access_log::SetAdditionalLogKeys
5
6
#
include
<
userver
/
logging
/
log_extra
.
hpp
>
7
#
include
<
userver
/
ugrpc
/
server
/
middlewares
/
base
.
hpp
>
8
9
USERVER_NAMESPACE_BEGIN
10
11
namespace
ugrpc::server::middlewares::
access_log
{
12
13
/// @brief Adds or extends log extra fields for gRPC access logging
14
/// @param context Middleware call context containing the storage
15
/// @param log_extra Additional log fields to add (will be moved from)
16
/// @snippet grpc/tests/logging/access_log_test.cpp grpc log extra tag
17
///
18
/// If log extra fields already exist in the context, extends them with new fields.
19
/// Otherwise, creates new log extra storage with the provided fields.
20
void
SetAdditionalLogKeys
(MiddlewareCallContext& context, logging::LogExtra&& log_extra);
21
22
}
// namespace ugrpc::server::middlewares::access_log
23
24
USERVER_NAMESPACE_END
userver
ugrpc
server
middlewares
access_log
log_extra.hpp
Generated on Wed Apr 1 2026 10:52:51 for userver by
Doxygen
1.13.2