Documentation

MonologLogAdapter extends AbstractLogAdapter
in package

Adapter class that allows Guzzle to log data using various logging implementations

Tags
codeCoverageIgnore

Table of Contents

Properties

$log  : mixed
$mapping  : mixed
syslog to Monolog mappings

Methods

__construct()  : mixed
getLogObject()  : mixed
log()  : mixed
Log a message at a priority

Properties

$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

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


        
On this page

Search results