PHP Класс Airship\Engine\Ledger

Logs messages in the appropriate ledger storage device.
Наследование: implements LoggerInterface
Показать файл Открыть проект

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

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

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

Метод Описание
__construct ( Airship\Engine\Contract\LedgerStorageInterface $storage = null, $args ) Ledger constructor.
alert ( string $message, array $context = [] ) : mixed Store an ALERT message
critical ( string $message, array $context = [] ) : mixed Store a CRITICAL message
debug ( string $message, array $context = [] ) : mixed Store a DEBUG message
defaultContext ( ) : array All things equal, this information should be included.
emergency ( string $message, array $context = [] ) : mixed Store an EMERGENCY message
error ( string $message, array $context = [] ) : mixed Store an ERROR message
info ( string $message, array $context = [] ) : mixed Store a INFO message
log ( string $level, string $message, array $context = [] ) : mixed Log a message, optionally sign and seal it, if you passed the right keys to the constructor.
notice ( string $message, array $context = [] ) : mixed Store a NOTICE message
warning ( string $message, array $context = [] ) : mixed Store a WARNING message

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

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

Ledger constructor.
public __construct ( Airship\Engine\Contract\LedgerStorageInterface $storage = null, $args )
$storage Airship\Engine\Contract\LedgerStorageInterface
$args

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

Store an ALERT message
public alert ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

Store a CRITICAL message
public critical ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

Store a DEBUG message
public debug ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

All things equal, this information should be included.
public defaultContext ( ) : array
Результат array

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

Store an EMERGENCY message
public emergency ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

Store an ERROR message
public error ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

Store a INFO message
public info ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

Log a message, optionally sign and seal it, if you passed the right keys to the constructor.
public log ( string $level, string $message, array $context = [] ) : mixed
$level string
$message string
$context array
Результат mixed

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

Store a NOTICE message
public notice ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

Store a WARNING message
public warning ( string $message, array $context = [] ) : mixed
$message string
$context array
Результат mixed

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

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

protected $storage