#include <userver/components/logging_configurator.hpp>
Helper component to configure logging.
The functionality is not in Trace or Logger components because that introduces circular dependency between Logger and DynamicConfig.
Name | Description | Default value |
---|---|---|
limited-logging-enable | set to true to make LOG_LIMITED drop repeated logs | - |
limited-logging-interval | utils::StringToDuration suitable duration string to group repeated logs into one message | - |
Definition at line 44 of file logging_configurator.hpp.
Public Member Functions | |
LoggingConfigurator (const ComponentConfig &config, const ComponentContext &context) | |
virtual ComponentHealth | GetComponentHealth () const |
virtual void | OnLoadingCancelled () |
virtual void | OnAllComponentsLoaded () |
virtual void | OnAllComponentsAreStopping () |
Static Public Member Functions | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Attributes | |
static constexpr std::string_view | kName = "logging-configurator" |
The default name of components::LoggingConfigurator component. | |
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase, and server::handlers::Restart.
Definition at line 49 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in urabbitmq::ConsumerComponentBase, components::ComponentBase, and components::Server.
Definition at line 55 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in urabbitmq::ConsumerComponentBase, components::ComponentBase, components::Server, and server::handlers::Ping.
Definition at line 53 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase.
Definition at line 51 of file raw_component_base.hpp.