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.
Simple Logger Implementation.
$logger = new \Samy\Psr3\Logger();
Describes Logger interface.
System is unusable.
Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
Critical conditions. Example: Application component unavailable, unexpected exception.
Runtime errors that do not require immediate action but should typically be logged and monitored.
Exceptional occurrences that are not errors. Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
Normal but significant events.
Interesting events. Example: User logs in, SQL logs.
Detailed debug information.
Logs with an arbitrary level.
$logger->log($level, $message, $context);