Psr\Log\LoggerInterface
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.
Synopsis
interface LoggerInterface
{
- // methods
- public null emergency()
- public null alert()
- public null critical()
- public null error()
- public null warning()
- public null notice()
- public null info()
- public null debug()
- public null log()
Hierarchy
Extended by
Implemented by
Methods
public
- alert() — Action must be taken immediately.
- critical() — Critical conditions.
- debug() — Detailed debug information.
- emergency() — System is unusable.
- error() — Runtime errors that do not require immediate action but should typically be logged and monitored.
- info() — Interesting events.
- log() — Logs with an arbitrary level.
- notice() — Normal but significant events.
- warning() — Exceptional occurrences that are not errors.