Fixed window rate limiter for logging.
Synopsis
Declared in <logging.h>
class LogRateLimiter;
Types
Name |
Description |
Keeps track of an individual source location and how many available bytes are left for logging from it. |
Type Aliases
Name |
Description |
Callback type used to schedule the periodic reset of the rate‐limit window. |
Enums
Name |
Description |
Suppression status of a source log location. |
Member Functions
Name |
Description |
Consumes |
|
Resets all usage to zero. Called periodically by the scheduler. |
|
Returns true if any log locations are currently being suppressed. |
Static Member Functions
Name |
Description |
Create a shared rate limiter and schedule its periodic window reset. |
Data Members
Name |
Description |
Maximum number of bytes logged per location per window. |
|
Interval after which the window is reset. |
Created with MrDocs