Interface LoggingCustomizer

All Known Implementing Classes:
NoopLoggingCustomizer

public interface LoggingCustomizer
  • Method Details

    • name

      String name()
      Returns name of the logger implementation. Will be matched against the value of the otel.javavagent.logger system property - in case it is the same, this LoggingCustomizer will be used to initialize the javaagent logging subsystem.
    • init

      void init(EarlyInitAgentConfig earlyConfig)
    • 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

      void onStartupFailure(Throwable throwable)
      Register a callback which will be called on synchronous startup failure (including if init(EarlyInitAgentConfig) fails).

      Synchronous startup may or may not include running AgentListener.afterAgent(AutoConfiguredOpenTelemetrySdk)" listeners.