Nexus API Reference

OtelPsrLogger extends AbstractLogger
in package

FinalYes
Tags
psalm-api

PSR-3 logger that emits each record to an OpenTelemetry LoggerInterface, so application and actor-system logs are exported over OTLP (e.g. to Loki via a collector) and — because the SDK stamps the active trace context onto each record — correlate with the spans that were in flight when they were written.

Table of Contents

Methods

__construct()  : mixed
log()  : void

Methods

__construct()

public __construct(LoggerInterface $logger) : mixed
Parameters
$logger : LoggerInterface

log()

public log(mixed $level, string|Stringable $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$level : mixed
$message : string|Stringable
$context : array<string|int, mixed> = []
Attributes
#[Override]
On this page

Search results