MonologLogAdapter
extends AbstractLogAdapter
in package
Adapter class that allows Guzzle to log data using various logging implementations
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 Monolog mappings
private
static mixed
$mapping
= array(LOG_DEBUG => \Monolog\Logger::DEBUG, LOG_INFO => \Monolog\Logger::INFO, LOG_WARNING => \Monolog\Logger::WARNING, LOG_ERR => \Monolog\Logger::ERROR, LOG_CRIT => \Monolog\Logger::CRITICAL, LOG_ALERT => \Monolog\Logger::ALERT)
Methods
__construct()
public
__construct(Logger $logObject) : mixed
Parameters
- $logObject : Logger
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