PHP Класс Webiny\Component\Logger\Driver\Webiny

Наследование: implements Webiny\Component\Logger\Bridge\LoggerDriverInterface, use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект

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

Метод Описание
__construct ( )
addHandler ( AbstractHandler $handler ) Add handler to logger Handlers are being prepended to the handlers array, so the last added handler will be executed first
alert ( string $message, array $context = [] ) : null Action must be taken immediately.
critical ( string $message, array $context = [] ) : null Critical conditions.
debug ( string $message, array $context = [] ) : null Detailed debug information.
emergency ( string $message, array $context = [] ) : null System is unusable.
error ( string $message, array $context = [] ) : null 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 = [] ) : null Logs with an arbitrary level.
notice ( string $message, array $context = [] ) : null Normal but significant events.
setName ( string $name ) Set logger name
warning ( string $message, array $context = [] ) : null Exceptional occurrences that are not errors.

Защищенные методы

Метод Описание
addRecord ( integer $level, string $message, array $context = [] ) : boolean Adds a log record.

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

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

public __construct ( )

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

Add handler to logger Handlers are being prepended to the handlers array, so the last added handler will be executed first
public addHandler ( AbstractHandler $handler )
$handler Webiny\Component\Logger\Driver\Webiny\Handler\AbstractHandler

addRecord() защищенный Метод

Adds a log record.
protected addRecord ( integer $level, string $message, array $context = [] ) : boolean
$level integer The logging level
$message string The log message
$context array The log context
Результат boolean Whether the record has been processed

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 = [] ) : null
$message string
$context array
Результат null

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

Detailed debug information.
public debug ( string $message, array $context = [] ) : null
$message string
$context array
Результат null

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 = [] ) : null
$message string
$context array
Результат null

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 = [] ) : null
$level mixed
$message string
$context array
Результат null

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

Normal but significant events.
public notice ( string $message, array $context = [] ) : null
$message string
$context array
Результат null

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

Set logger name
public setName ( string $name )
$name string Logger name

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

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
public warning ( string $message, array $context = [] ) : null
$message string
$context array
Результат null