Documentation

PsrLogAdapter extends AbstractLogAdapter
in package

PSR-3 log adapter

Tags
link
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md

Table of Contents

Properties

$log  : mixed
$mapping  : mixed
syslog to PSR-3 mappings

Methods

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

Properties

$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

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