PsrLogAdapter
extends AbstractLogAdapter
in package
PSR-3 log adapter
Tags
Table of Contents
- $log : mixed
- $mapping : mixed
- syslog to PSR-3 mappings
- __construct() : mixed
- getLogObject() : mixed
- log() : mixed
Properties
$log
protected
mixed
$log
$mapping
syslog to PSR-3 mappings
private
static mixed
$mapping
= array(LOG_DEBUG => PsrLogLogLevel::DEBUG, LOG_INFO => PsrLogLogLevel::INFO, LOG_WARNING => PsrLogLogLevel::WARNING, LOG_ERR => PsrLogLogLevel::ERROR, LOG_CRIT => PsrLogLogLevel::CRITICAL, LOG_ALERT => PsrLogLogLevel::ALERT)
Methods
__construct()
public
__construct(LoggerInterface $logObject) : mixed
Parameters
- $logObject : LoggerInterface
Return values
mixed —getLogObject()
public
getLogObject() : mixed
Return values
mixed —log()
public
log(mixed $message[, mixed $priority = LOG_INFO ][, mixed $extras = array() ]) : mixed
Parameters
- $message : mixed
- $priority : mixed = LOG_INFO
- $extras : mixed = array()