Package io.opentelemetry.api.logs
Interface LoggerBuilder
public interface LoggerBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Gets or creates aLoggerinstance.setInstrumentationVersion(String instrumentationScopeVersion) Sets the instrumentation scope version of the resultingLogger.setSchemaUrl(String schemaUrl) Set the scope schema URL of the resultingLogger.
-
Method Details
-
setSchemaUrl
- Parameters:
schemaUrl- The schema URL.- Returns:
- this
-
setInstrumentationVersion
- Parameters:
instrumentationScopeVersion- The instrumentation scope version.- Returns:
- this
-
build
Logger build()Gets or creates aLoggerinstance.- Returns:
- a
Loggerinstance configured with the provided options.
-