Interface EventLoggerProvider
@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 Summary
Modifier and TypeMethodDescriptioneventLoggerBuilder(String instrumentationScopeName) Creates a LoggerBuilder for a namedEventLoggerinstance.default EventLoggerGets or creates a namedEventLoggerinstance.static EventLoggerProvidernoop()Returns a no-opEventLoggerProviderwhich provides Loggers which do not record or emit.
-
Method Details
-
get
Gets or creates a namedEventLoggerinstance.- 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
Creates a LoggerBuilder for a namedEventLoggerinstance.- 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
Returns a no-opEventLoggerProviderwhich provides Loggers which do not record or emit.
-