PsrLogAdapter
extends AbstractLogAdapter
in package
PSR-3 log adapter
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- getLogObject() : mixed
- log() : mixed
- Log a message at a priority
Properties
$log
protected
mixed
$log
$mapping
syslog to PSR-3 mappings
private
static mixed
$mapping
= array(LOG_DEBUG => \Psr\Log\LogLevel::DEBUG, LOG_INFO => \Psr\Log\LogLevel::INFO, LOG_WARNING => \Psr\Log\LogLevel::WARNING, LOG_ERR => \Psr\Log\LogLevel::ERROR, LOG_CRIT => \Psr\Log\LogLevel::CRITICAL, LOG_ALERT => \Psr\Log\LogLevel::ALERT)
Methods
__construct()
public
__construct(LoggerInterface $logObject) : mixed
Parameters
- $logObject : LoggerInterface
getLogObject()
public
getLogObject() : mixed
log()
Log a message at a priority
public
log(mixed $message[, mixed $priority = LOG_INFO ][, mixed $extras = array() ]) : mixed
Parameters
- $message : mixed
-
Message to log
- $priority : mixed = LOG_INFO
-
Priority of message (use the \LOG_* constants of 0 - 7)
- $extras : mixed = array()
-
Extra information to log in event