Menu

## AbstractLogger
in package

AbstractLogger.php : 20

Kotchasan Logger Class (PSR-3)

##### Tags

see
  https://www.kotchasan.com/

### 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
log() : mixed
  Logs with an arbitrary level
notice() : mixed
  Normal but significant events
warning() : mixed
  Exceptional occurrences that are not errors

### Methods

#### alert()

AbstractLogger.php : 31

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 : 44

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 : 55

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 : 66

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 : 78

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 : 91

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 —

#### log()

AbstractLogger.php : 103

Logs with an arbitrary level

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

##### Parameters

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

##### Return values

mixed —

#### notice()

AbstractLogger.php : 111

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 : 125

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