Describes a logger instance.
The message MUST be a string or object implementing __toString().
The message MAY contain placeholders in the form: {foo} where foo will be replaced by the context data in key "foo".
The context array can contain arbitrary data. The only assumption that can be made by implementors is that if an Exception instance is given to produce a stack trace, it MUST be in a key named "exception".
See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md for the full interface specification.
Methods | ||
---|---|---|
public
|
emergency(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
alert(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
critical(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
error(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
warning(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
notice(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
info(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
debug(string|Stringable $message, mixed[] $context = []): void
|
# |
public
|
log(mixed $level, string|Stringable $message, mixed[] $context = []): void
|
# |