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

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

Detailed Description

Component for gRPC client 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 27 of file component.hpp.

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

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

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

Additional Inherited Members

- Protected Types inherited from components::ComponentBase
using LoggableComponentBase = ComponentBase
 Legacy alias, use ComponentBase instead.
 

Member Function Documentation

◆ GetMiddlewareFactory()

std::shared_ptr< const MiddlewareFactoryBase > ugrpc::client::middlewares::log::Component::GetMiddlewareFactory ( )
overridevirtual

Returns a middleware according to the component's settings.

Implements ugrpc::client::MiddlewareComponentBase.


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