Interface EventLoggerProvider

All Known Implementing Classes:
DefaultEventLoggerProvider, SdkEventLoggerProvider

@ThreadSafe public interface EventLoggerProvider
A registry for creating scoped EventLoggers. The name Provider is for consistency with other languages and it is NOT loaded using reflection.
See Also:
  • Method Details

    • get

      default EventLogger get(String instrumentationScopeName)
      Gets or creates a named EventLogger instance.
      Parameters:
      instrumentationScopeName - A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
      Returns:
      a Logger instance.
    • eventLoggerBuilder

      EventLoggerBuilder eventLoggerBuilder(String instrumentationScopeName)
      Creates a LoggerBuilder for a named EventLogger instance.
      Parameters:
      instrumentationScopeName - A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
      Returns:
      a LoggerBuilder instance.
    • noop

      static EventLoggerProvider noop()
      Returns a no-op EventLoggerProvider which provides Loggers which do not record or emit.