userver: ugrpc::server::middlewares::log::Component Class Reference
Loading...
Searching...
No Matches
ugrpc::server::middlewares::log::Component Class Referencefinal

#include <userver/ugrpc/server/middlewares/log/component.hpp>

Detailed Description

Component for gRPC server logging.

Static options:

Name Description Default value
log-level log level for msg logging debug
msg-size-log-limit max message size to log, the rest will be truncated 512

Definition at line 29 of file component.hpp.

+ Inheritance diagram for ugrpc::server::middlewares::log::Component:
+ Collaboration diagram for ugrpc::server::middlewares::log::Component:

Public Member Functions

 Component (const components::ComponentConfig &config, const components::ComponentContext &context)
 
std::shared_ptr< MiddlewareBaseGetMiddleware () override
 Returns a middleware according to the component's settings.
 
- Public Member Functions inherited from components::LoggableComponentBase
 LoggableComponentBase (const ComponentConfig &, const ComponentContext &)
 
 LoggableComponentBase (LoggableComponentBase &&)=delete
 
 LoggableComponentBase (const LoggableComponentBase &)=delete
 
 ~LoggableComponentBase () override=default
 
ComponentHealth GetComponentHealth () const override
 
void OnLoadingCancelled () override
 
void OnAllComponentsLoaded () override
 
void OnAllComponentsAreStopping () override
 

Static Public Member Functions

static yaml_config::Schema GetStaticConfigSchema ()
 
- Static Public Member Functions inherited from components::LoggableComponentBase
static yaml_config::Schema GetStaticConfigSchema ()
 

Static Public Attributes

static constexpr std::string_view kName = "grpc-server-logging"
 The default name of ugrpc::server::middlewares::log::Component.
 

Member Function Documentation

◆ GetMiddleware()

std::shared_ptr< MiddlewareBase > ugrpc::server::middlewares::log::Component::GetMiddleware ( )
overridevirtual

Returns a middleware according to the component's settings.

Implements ugrpc::server::MiddlewareComponentBase.


The documentation for this class was generated from the following file: