PhpErrorLogPsrLogger
class PhpErrorLogPsrLogger extends AbstractLogger (View source)
PSR-3 logger that writes every message to PHP's error_log().
Used as a default when a class accepts an optional LoggerInterface and the caller does not inject one. This preserves the legacy error_log() behavior while letting tests substitute a mock to capture or silence messages.
Methods
void
Details
void
log($level, Stringable|string $message, array $context = [])
No description