Interface EventLoggerProvider
-
- All Known Implementing Classes:
DefaultEventLoggerProvider
,SdkEventLoggerProvider
@ThreadSafe public interface EventLoggerProvider
A registry for creating scopedEventLogger
s. The name Provider is for consistency with other languages and it is NOT loaded using reflection.- See Also:
EventLogger
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EventLoggerBuilder
eventLoggerBuilder(java.lang.String instrumentationScopeName)
Creates a LoggerBuilder for a namedEventLogger
instance.default EventLogger
get(java.lang.String instrumentationScopeName)
Gets or creates a namedEventLogger
instance.static EventLoggerProvider
noop()
Returns a no-opEventLoggerProvider
which provides Loggers which do not record or emit.
-
-
-
Method Detail
-
get
default EventLogger get(java.lang.String instrumentationScopeName)
Gets or creates a namedEventLogger
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(java.lang.String instrumentationScopeName)
Creates a LoggerBuilder for a namedEventLogger
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-opEventLoggerProvider
which provides Loggers which do not record or emit.
-
-