PSR-3 Logger Interface

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


log

Logs with an arbitrary level.

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

emergency

System is unusable.

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

alert

Action must be taken immediately.

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

critical

Critical conditions.

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

error

Runtime errors that do not require immediate action.

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

warning

Exceptional occurrences that are not errors.

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

notice

Normal but significant events.

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

info

Interesting events.

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

debug

Detailed debug information.

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