PHP Класс Imdb\Logger

Наследование: implements Psr\Log\LoggerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$enabled

Открытые методы

Метод Описание
__construct ( $enabled = true )
alert ( string $message, array $context = [] ) : null Action must be taken immediately.
critical ( string $message, array $context = [] ) Critical conditions.
debug ( string $message, array $context = [] ) Detailed debug information.
emergency ( string $message, array $context = [] ) : null System is unusable.
error ( string $message, array $context = [] ) Runtime errors that do not require immediate action but should typically be logged and monitored.
info ( string $message, array $context = [] ) : null Interesting events.
log ( mixed $level, string $message, array $context = [] ) Logs with an arbitrary level.
notice ( string $message, array $context = [] ) Normal but significant events.
warning ( string $message, array $context = [] ) Exceptional occurrences that are not errors.

Описание методов

__construct() публичный Метод

public __construct ( $enabled = true )

alert() публичный Метод

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
public alert ( string $message, array $context = [] ) : null
$message string
$context array
Результат null

critical() публичный Метод

Example: Application component unavailable, unexpected exception.
public critical ( string $message, array $context = [] )
$message string
$context array

debug() публичный Метод

Detailed debug information.
public debug ( string $message, array $context = [] )
$message string
$context array

emergency() публичный Метод

System is unusable.
public emergency ( string $message, array $context = [] ) : null
$message string
$context array
Результат null

error() публичный Метод

Runtime errors that do not require immediate action but should typically be logged and monitored.
public error ( string $message, array $context = [] )
$message string
$context array

info() публичный Метод

Example: User logs in, SQL logs.
public info ( string $message, array $context = [] ) : null
$message string
$context array
Результат null

log() публичный Метод

Logs with an arbitrary level.
public log ( mixed $level, string $message, array $context = [] )
$level mixed
$message string
$context array

notice() публичный Метод

Normal but significant events.
public notice ( string $message, array $context = [] )
$message string
$context array

warning() публичный Метод

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
public warning ( string $message, array $context = [] )
$message string
$context array

Описание свойств

$enabled защищенное свойство

protected $enabled