Menu

## AbstractLogger
in package
implements LoggerInterface

AbstractLogger.php : 12

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

### Methods

#### alert()

AbstractLogger.php : 38

Action must be taken immediately.

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

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> = array()

##### Return values

void —

#### critical()

AbstractLogger.php : 53

Critical conditions.

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

Example: Application component unavailable, unexpected exception.

##### Parameters

$message : string
$context : array<string|int, mixed> = array()

##### Return values

void —

#### debug()

AbstractLogger.php : 124

Detailed debug information.

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

##### Parameters

$message : string
$context : array<string|int, mixed> = array()

##### Return values

void —

#### emergency()

AbstractLogger.php : 22

System is unusable.

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

##### Parameters

$message : string
$context : array<string|int, mixed> = array()

##### Return values

void —

#### error()

AbstractLogger.php : 67

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

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

##### Parameters

$message : string
$context : array<string|int, mixed> = array()

##### Return values

void —

#### info()

AbstractLogger.php : 111

Interesting events.

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

Example: User logs in, SQL logs.

##### Parameters

$message : string
$context : array<string|int, mixed> = array()

##### Return values

void —

#### notice()

AbstractLogger.php : 96

Normal but significant events.

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

##### Parameters

$message : string
$context : array<string|int, mixed> = array()

##### Return values

void —

#### warning()

AbstractLogger.php : 83

Exceptional occurrences that are not errors.

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

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> = array()

##### Return values

void —

## Search results