Methods |
public
|
__construct(ConsoleWriterInterface $writer)
Creates a new ConsoleLogger object
Creates a new ConsoleLogger object
|
#
|
public
|
emergency($message, array $context = [])
System is unusable.
|
#
|
public
|
alert($message, array $context = [])
Action must be taken immediately.
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should
trigger the SMS alerts and wake you up.
Implements
|
#
|
public
|
critical($message, array $context = [])
Critical conditions.
Critical conditions.
Example: Application component unavailable, unexpected exception.
Implements
|
#
|
public
|
error($message, array $context = [])
Runtime errors that do not require immediate action but should typically
be logged and monitored.
Runtime errors that do not require immediate action but should typically
be logged and monitored.
Implements
|
#
|
public
|
warning($message, array $context = [])
Exceptional occurrences that are not errors.
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things
that are not necessarily wrong.
Implements
|
#
|
public
|
notice($message, array $context = [])
Normal but significant events.
Normal but significant events.
Implements
|
#
|
public
|
info($message, array $context = [])
Interesting events.
Interesting events.
Example: User logs in, SQL logs.
Implements
|
#
|
public
|
debug($message, array $context = [])
Detailed debug information.
Detailed debug information.
Implements
|
#
|
public
|
log($level, $message, array $context = [])
Logs with an arbitrary level.
Logs with an arbitrary level.
Implements
|
#
|