Class NoopLoggingCustomizer
java.lang.Object
io.opentelemetry.javaagent.tooling.NoopLoggingCustomizer
- All Implemented Interfaces:
LoggingCustomizer
@AutoService(LoggingCustomizer.class)
public final class NoopLoggingCustomizer
extends Object
implements LoggingCustomizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(EarlyInitAgentConfig earlyConfig) name()Returns name of the logger implementation.voidonStartupFailure(Throwable throwable) Register a callback which will be called on synchronous startup failure (including ifLoggingCustomizer.init(EarlyInitAgentConfig)fails).voidRegister a callback which will be called on synchronous startup success.
-
Constructor Details
-
NoopLoggingCustomizer
public NoopLoggingCustomizer()
-
-
Method Details
-
name
Description copied from interface:LoggingCustomizerReturns name of the logger implementation. Will be matched against the value of theotel.javavagent.loggersystem property - in case it is the same, thisLoggingCustomizerwill be used to initialize the javaagent logging subsystem.- Specified by:
namein interfaceLoggingCustomizer
-
init
- Specified by:
initin interfaceLoggingCustomizer
-
onStartupFailure
Description copied from interface:LoggingCustomizerRegister a callback which will be called on synchronous startup failure (including ifLoggingCustomizer.init(EarlyInitAgentConfig)fails).Synchronous startup may or may not include running
AgentListener.afterAgent(AutoConfiguredOpenTelemetrySdk)" listeners.- Specified by:
onStartupFailurein interfaceLoggingCustomizer
-
onStartupSuccess
public void onStartupSuccess()Description copied from interface:LoggingCustomizerRegister a callback which will be called on synchronous startup success.Synchronous startup may or may not include running
AgentListener.afterAgent(AutoConfiguredOpenTelemetrySdk)" listeners.- Specified by:
onStartupSuccessin interfaceLoggingCustomizer
-