Interface LoggingCustomizer
- All Known Implementing Classes:
NoopLoggingCustomizer
public interface LoggingCustomizer
-
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 ifinit(EarlyInitAgentConfig)fails).voidRegister a callback which will be called on synchronous startup success.
-
Method Details
-
name
String name()Returns 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. -
init
-
onStartupSuccess
void onStartupSuccess()Register a callback which will be called on synchronous startup success.Synchronous startup may or may not include running
AgentListener.afterAgent(AutoConfiguredOpenTelemetrySdk)" listeners. -
onStartupFailure
Register a callback which will be called on synchronous startup failure (including ifinit(EarlyInitAgentConfig)fails).Synchronous startup may or may not include running
AgentListener.afterAgent(AutoConfiguredOpenTelemetrySdk)" listeners.
-