Class ThrottlingLogger
java.lang.Object
io.opentelemetry.sdk.internal.ThrottlingLogger
Will limit the number of log messages emitted, so as not to spam when problems are happening.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
ConstructorsConstructorDescriptionThrottlingLogger(Logger delegate) Create a new logger which will enforce a max number of messages per minute. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLoggable(Level level) Returns whether the current wrapped logger is set to log at the given level.voidLog a message at the given level.voidLog a message at the given level with a throwable.
-
Constructor Details
-
ThrottlingLogger
Create a new logger which will enforce a max number of messages per minute.
-
-
Method Details
-
log
-
log
-
isLoggable
Returns whether the current wrapped logger is set to log at the given level.- Returns:
- true if the logger set to log at the requested level.
-