This is a simple Logger implementation that other Loggers can inherit from.
It simply delegates all log-level-specific methods to the log
method to
reduce boilerplate code that a simple Logger that does the same thing with
messages regardless of the error level has to implement.
Methods |
public
alert
(
$message
,
array
$context
=
[
]
) Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should
|
public
critical
(
$message
,
array
$context
=
[
]
) Critical conditions. Example: Application component unavailable, unexpected exception.
|
public
debug
(
$message
,
array
$context
=
[
]
) Detailed debug information.
|
public
emergency
(
$message
,
array
$context
=
[
]
) System is unusable.
|
public
error
(
$message
,
array
$context
=
[
]
) Runtime errors that do not require immediate action but should typically
|
public
info
(
$message
,
array
$context
=
[
]
) Interesting events. Example: User logs in, SQL logs.
|
public
notice
(
$message
,
array
$context
=
[
]
) Normal but significant events.
|
public
warning
(
$message
,
array
$context
=
[
]
) Exceptional occurrences that are not errors. Example: Use of deprecated APIs, poor use of an API, undesirable things
|