Interface ExtendedLogger
-
- All Superinterfaces:
Logger
- All Known Implementing Classes:
ExtendedDefaultLogger,SdkLogger
public interface ExtendedLogger extends Logger
ExtendedLoggerwith experimental APIs.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisEnabled()Returnstrueif the logger is enabled.-
Methods inherited from interface io.opentelemetry.api.logs.Logger
logRecordBuilder
-
-
-
-
Method Detail
-
isEnabled
default boolean isEnabled()
Returnstrueif the logger is enabled.This allows callers to avoid unnecessary compute when nothing is consuming the data. Because the response is subject to change over the application, callers should call this before each call to
Logger.logRecordBuilder().
-
-