ConfiguredLogger
in package
implements
LoggerInterface
uses
LoggerTrait
FinalYes
Writes internal log messages through {@see Logging::logWriter()}, filtered by a level held on the instance rather than by the global minimum. This lets a configured `log_level` apply to messages emitted while the SDK is being created, before {@see Logging::setLogLevel()} has been called.
A null level defers to Logging::logLevel(), so an unconfigured logger behaves exactly as LogsMessagesTrait does.
Table of Contents
Interfaces
- LoggerInterface
Properties
- $level : string|null
Methods
- __construct() : mixed
- log() : void
Properties
$level read-only
private
string|null
$level
= null
Methods
__construct()
public
__construct(["debug"|"info"|"notice"|"warning"|"error"|"critical"|"alert"|"emergency"|"none"|null $level = null ]) : mixed
Parameters
- $level : "debug"|"info"|"notice"|"warning"|"error"|"critical"|"alert"|"emergency"|"none"|null = null
log()
public
log(mixed $level, mixed $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $level : mixed
- $message : mixed
- $context : array<string|int, mixed> = []
Tags
Attributes
- #[Override]