Menu

## AbstractLogger
in package
implements LoggerInterface

AbstractLogger.php : 11

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.

### Interfaces, Classes and Traits

LoggerInterface
  Describes a logger instance.

### Table of Contents

alert() : mixed
  Action must be taken immediately.
critical() : mixed
  Critical conditions.
debug() : mixed
  Detailed debug information.
emergency() : mixed
  System is unusable.
error() : mixed
  Runtime errors that do not require immediate action but should typically be logged and monitored.
info() : mixed
  Interesting events.
notice() : mixed
  Normal but significant events.
warning() : mixed
  Exceptional occurrences that are not errors.

### Methods

#### alert()

AbstractLogger.php : 33

Action must be taken immediately.

`public alert(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

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

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

#### critical()

AbstractLogger.php : 46

Critical conditions.

`public critical(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

Example: Application component unavailable, unexpected exception.

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

#### debug()

AbstractLogger.php : 107

Detailed debug information.

`public debug(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

#### emergency()

AbstractLogger.php : 19

System is unusable.

`public emergency(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

#### error()

AbstractLogger.php : 58

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

`public error(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

#### info()

AbstractLogger.php : 96

Interesting events.

`public info(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

Example: User logs in, SQL logs.

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

#### notice()

AbstractLogger.php : 83

Normal but significant events.

`public notice(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

#### warning()

AbstractLogger.php : 72

Exceptional occurrences that are not errors.

`public warning(string $message[, array<string|int, mixed> $context = [] ]) : mixed`

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

##### Parameters

$message : string
$context : array<string|int, mixed> = []

##### Return values

mixed —

## Search results