Logger is the entry point into a log pipeline.
Obtain a logRecordBuilder(), add properties using the setters, and emit it via LogRecordBuilder#emit().
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.
| Modifier and Type | Method and Description |
|---|---|
| public LogRecordBuilder |
| logRecordBuilder | back to summary |
|---|---|
| public LogRecordBuilder logRecordBuilder() Return a Important Note this should be used to write appenders to bridge logs from logging frameworks (e.g. SLF4J, Log4j, JUL, Logback, etc). It is NOT a replacement for an application logging framework, and should not be used by application developers. Build the log record using the | |