DelegatingPsrLogger

Extends \Psr\Log\AbstractLogger

Delegating logger which delegates log messages received from the PSR-3 interface to the Joomla! Log object.

deprecated
since

1.3.0

deprecated

The joomla/log package is deprecated

Methods

__construct

Constructor.

__construct(\Joomla\Log\Log $logger) 
since

1.3.0

Arguments

$logger

\Joomla\Log\LogThe Log instance to delegate messages to.

log

Logs with an arbitrary level.

log(mixed $level, string $message, array $context = array()) : void
since

1.3.0

throws

\Psr\Log\InvalidArgumentException

Arguments

$level

mixedThe log level.

$message

stringThe log message.

$context

arrayAdditional message context.

Properties

logger

The Log instance to delegate messages to.

since

1.3.0

Type(s)

\Joomla\Log\Log

priorityMap

Mapping array to map a PSR-3 level to a Joomla priority.

since

1.3.0

Type(s)

array