Package io.opentelemetry.api.logs
Interface LoggerBuilder
-
- All Known Implementing Classes:
DefaultLoggerProvider.NoopLoggerBuilder,ExtendedDefaultLoggerProvider.NoopLoggerBuilder,SdkLoggerBuilder
public interface LoggerBuilderBuilder class for creatingLoggerinstances.Loggers are identified by their scope name, version, and schema URL. These identifying fields, along with attributes, combine to form the instrumentation scope, which is attached to all log records produced by theLogger.- Since:
- 1.27.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Loggerbuild()Gets or creates aLoggerinstance.LoggerBuildersetInstrumentationVersion(java.lang.String instrumentationScopeVersion)Sets the instrumentation scope version of the resultingLogger.LoggerBuildersetSchemaUrl(java.lang.String schemaUrl)Set the scope schema URL of the resultingLogger.
-
-
-
Method Detail
-
setSchemaUrl
LoggerBuilder setSchemaUrl(java.lang.String schemaUrl)
- Parameters:
schemaUrl- The schema URL.- Returns:
- this
-
setInstrumentationVersion
LoggerBuilder setInstrumentationVersion(java.lang.String instrumentationScopeVersion)
- Parameters:
instrumentationScopeVersion- The instrumentation scope version.- Returns:
- this
-
-