Esc
API Index — Namespaces, Packages, Reports, Indices
Logger
extends AbstractLogger
in package
Table of Contents
Constants
- LEVEL_PRIORITY : mixed = [\Psr\Log\LogLevel::DEBUG => 0, \Psr\Log\LogLev...
- LEVEL_TO_KIND : mixed = [\Psr\Log\LogLevel::DEBUG => 'debug', \Psr\Log\...
Properties
- $minLevel : string
Methods
- __construct() : mixed
- log() : void
- write() : void
- interpolate() : string
Constants
LEVEL_PRIORITY
private
mixed
LEVEL_PRIORITY
= [\Psr\Log\LogLevel::DEBUG => 0, \Psr\Log\LogLevel::INFO => 1, \Psr\Log\LogLevel::NOTICE => 2, \Psr\Log\LogLevel::WARNING => 3, \Psr\Log\LogLevel::ERROR => 4, \Psr\Log\LogLevel::CRITICAL => 5, \Psr\Log\LogLevel::ALERT => 6, \Psr\Log\LogLevel::EMERGENCY => 7]
LEVEL_TO_KIND
private
mixed
LEVEL_TO_KIND
= [\Psr\Log\LogLevel::DEBUG => 'debug', \Psr\Log\LogLevel::INFO => 'info', \Psr\Log\LogLevel::NOTICE => 'info', \Psr\Log\LogLevel::WARNING => 'warning', \Psr\Log\LogLevel::ERROR => 'error', \Psr\Log\LogLevel::CRITICAL => 'error', \Psr\Log\LogLevel::ALERT => 'error', \Psr\Log\LogLevel::EMERGENCY => 'error']
Properties
$minLevel
private
string
$minLevel
= LogLevel::DEBUG
Methods
__construct()
public
__construct([string $minLevel = LogLevel::DEBUG ]) : mixed
Parameters
- $minLevel : string = LogLevel::DEBUG
log()
public
log(mixed $level, Stringable|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $level : mixed
- $message : Stringable|string
- $context : array<string|int, mixed> = []
write()
protected
write(string $formatted, string $kind) : void
Parameters
- $formatted : string
- $kind : string
interpolate()
private
interpolate(string $message, array<string, mixed> $context) : string
Parameters
- $message : string
- $context : array<string, mixed>