Aerys\Logger class Logger implements Psr\Log\LoggerInterface

Summary

Properties

Methods

Properties

Methods

output — protected abstract function output(string $message)
No documentation.
Type Parameter Description Default Value
string $message No documentation. none
emergency — public final function emergency(string $message, array $context = [])

System is unusable.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
alert — public final function alert(string $message, array $context = [])

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
critical — public final function critical(string $message, array $context = [])

Critical conditions.

Example: Application component unavailable, unexpected exception.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
error — public final function error(string $message, array $context = [])

Runtime errors that do not require immediate action but should typically be logged and monitored.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
warning — public final function warning(string $message, array $context = [])

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
notice — public final function notice(string $message, array $context = [])

Normal but significant events.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
info — public final function info(string $message, array $context = [])

Interesting events.

Example: User logs in, SQL logs.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
debug — public final function debug(string $message, array $context = [])

Detailed debug information.

Type Parameter Description Default Value
string $message No documentation. none
array $context No documentation. []
log — public final function log(mixed $level, string $message, array $context = [])

Logs with an arbitrary level.

Type Parameter Description Default Value
mixed $level No documentation. none
string $message No documentation. none
array $context No documentation. []
setOutputLevel — protected final function setOutputLevel(int $outputLevel)
No documentation.
Type Parameter Description Default Value
int $outputLevel No documentation. none
setAnsify — protected final function setAnsify(string $mode)
No documentation.
Type Parameter Description Default Value
string $mode No documentation. none