PHP Class Bluz\Logger\Logger

Inheritance: extends Psr\Log\AbstractLogger, use trait Bluz\Common\Options
Mostra file Open project: bluzphp/framework

Protected Properties

Property Type Description
$alert list of alerts
$critical list of critical
$debug list of debug messages
$emergency list of emergency
$error list of errors
$info list of info
$memory integer
$notice list of notices
$startTime start time
$timer part time
$warning list of warnings

Public Methods

Method Description
get ( $level ) : array Get logs records by level
info ( string $message, array $context = [] ) : void Log info message
log ( mixed $level, string $message, array $context = [] ) : void Logs with an arbitrary level

Protected Methods

Method Description
interpolate ( string $message, array $context = [] ) : string Interpolates context values into the message placeholders

Method Details

get() public method

Get logs records by level
public get ( $level ) : array
$level
return array

info() public method

Log info message
public info ( string $message, array $context = [] ) : void
$message string
$context array
return void

interpolate() protected method

Interpolates context values into the message placeholders
protected interpolate ( string $message, array $context = [] ) : string
$message string
$context array
return string

log() public method

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

Property Details

$alert protected_oe property

list of alerts
protected $alert

$critical protected_oe property

list of critical
protected $critical

$debug protected_oe property

list of debug messages
protected $debug

$emergency protected_oe property

list of emergency
protected $emergency

$error protected_oe property

list of errors
protected $error

$info protected_oe property

list of info
protected $info

$memory protected_oe property

protected int $memory
return integer

$notice protected_oe property

list of notices
protected $notice

$startTime protected_oe property

start time
protected $startTime

$timer protected_oe property

part time
protected $timer

$warning protected_oe property

list of warnings
protected $warning