Top Description Interfaces Classes Enums
module io.opentelemetry.api

Package io.opentelemetry.api.logs

Annotations
@ParametersAreNonnullByDefault
Imports
javax.annotation.ParametersAreNonnullByDefault

API for writing log appenders.

The OpenTelemetry logging API exists to enable the creation of log appenders, which bridge logs from other log frameworks (e.g. SLF4J, Log4j, JUL, Logback, etc) into OpenTelemetry via io.opentelemetry.api.logs.Logger#logRecordBuilder(). It is NOT a replacement log framework.

Interface Summary

Modifier and TypeInterface and Description
public interface
Logger

A Logger is the entry point into a log pipeline.

public interface
LoggerBuilder

Builder class for creating Logger instances.

public interface
LoggerProvider

A registry for creating scoped Loggers.

public interface
LogRecordBuilder

Used to construct and emit log records from a Logger.

Class Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class

Enum Summary

Modifier and TypeEnum and Description
public enum
Severity

Log record severity options.