Loggers. The name Provider is for consistency with
other languages and it is NOT loaded using reflection.
The OpenTelemetry logs bridge API exists to enable bridging logs from other log frameworks (e.g. SLF4J, Log4j, JUL, Logback, etc) into OpenTelemetry and is NOT a replacement log API.
Logger
| Modifier and Type | Method and Description |
|---|---|
| public default Logger | |
| public LoggerBuilder | Returns: a LoggerBuilder instance.A name uniquely identifying the instrumentation scope, such as
the instrumentation library, package, or fully qualified class name. Must not be null. instrumentationScopeName)Creates a LoggerBuilder for a named Logger instance. |
| public static LoggerProvider |
| get | back to summary |
|---|---|
| public default Logger get(String instrumentationScopeName) Gets or creates a named Logger instance. | |
| loggerBuilder | back to summary |
|---|---|
| public LoggerBuilder loggerBuilder(String instrumentationScopeName) Creates a LoggerBuilder for a named Logger instance.
| |
| noop | back to summary |
|---|---|
| public static LoggerProvider noop() Returns a no-op | |