Logger

This is a simple Logger implementation that other Loggers can inherit from.

$logger = new \Samy\Psr3\Logger();

log

Logs with an arbitrary level.

$logger->log($level, $message, $context);

emergency

System is unusable.

$logger->emergency($message, $context);

alert

Action must be taken immediately.

$logger->alert($message, $context);

critical

Critical conditions.

$logger->critical($message, $context);

error

Runtime errors that do not require immediate action.

$logger->error($message, $context);

warning

Exceptional occurrences that are not errors.

$logger->warning($message, $context);

notice

Normal but significant events.

$logger->notice($message, $context);

info

Interesting events.

$logger->info($message, $context);

debug

Detailed debug information.

$logger->debug($message, $context);