A logger that emits log records via the OpenTelemetry Logs API.
Logs are exported as structured OTel log records through the configured OTLP exporter (e.g., to Grafana Loki, Azure Monitor, or console).
Requires @opentelemetry/api-logs at runtime (included when using @microsoft/opentelemetry distro). Falls back to console if unavailable.
@opentelemetry/api-logs
@microsoft/opentelemetry
console
import { configure, createOtelLogger } from 'botas-core'const logger = createOtelLogger()if (logger) configure(logger) Copy
import { configure, createOtelLogger } from 'botas-core'const logger = createOtelLogger()if (logger) configure(logger)
A logger that emits log records via the OpenTelemetry Logs API.
Logs are exported as structured OTel log records through the configured OTLP exporter (e.g., to Grafana Loki, Azure Monitor, or console).
Requires
@opentelemetry/api-logsat runtime (included when using@microsoft/opentelemetrydistro). Falls back toconsoleif unavailable.