|
StormByte C++ Library: Logger module 1.2.0
StormByte-Logger is the logging module of the StormByte C++ suite.
|
Immutable rule description used by Log::Throttle. More...
#include <StormByte/logger/manipulators.hxx>
Public Attributes | |
| std::optional< std::string > | Component |
| Optional component selector. | |
| std::optional< Level > | Level |
| Optional level selector. | |
| std::optional< std::string > | Group |
| Optional group selector. | |
| double | Rate = 0.0 |
| Lines per second; zero disables refill. | |
| std::size_t | Burst = 0 |
| Initial and maximum token capacity. | |
| ThrottlePolicy | Policy = ThrottlePolicy::Drop |
| Count policy. | |
| std::size_t | SampleN = 0 |
| Sample period when Policy is Sample. | |
| std::size_t | WindowKeep = 0 |
| Kept lines when Policy is Window. | |
| std::size_t | WindowPeriod = 0 |
| Window size when Policy is Window. | |
Immutable rule description used by Log::Throttle.
An absent Component, Level or Group is a wildcard. An engaged empty Component or Group selects the root/empty key.
| std::size_t StormByte::Logger::ThrottleSpec::Burst = 0 |
Initial and maximum token capacity.
| std::optional<std::string> StormByte::Logger::ThrottleSpec::Component |
Optional component selector.
| std::optional<std::string> StormByte::Logger::ThrottleSpec::Group |
Optional group selector.
| std::optional<Level> StormByte::Logger::ThrottleSpec::Level |
Optional level selector.
| ThrottlePolicy StormByte::Logger::ThrottleSpec::Policy = ThrottlePolicy::Drop |
Count policy.
| double StormByte::Logger::ThrottleSpec::Rate = 0.0 |
Lines per second; zero disables refill.
| std::size_t StormByte::Logger::ThrottleSpec::SampleN = 0 |
Sample period when Policy is Sample.
| std::size_t StormByte::Logger::ThrottleSpec::WindowKeep = 0 |
Kept lines when Policy is Window.
| std::size_t StormByte::Logger::ThrottleSpec::WindowPeriod = 0 |
Window size when Policy is Window.