CallbackLogger

Extends \Joomla\CMS\Log\Logger

Joomla! Callback Log class

This class allows logging to be handled by a callback function. This allows unprecedented flexibility in the way logging can be handled.

since

3.0.1

Methods

__construct

Constructor.

__construct(array &$options) 
inherited
since

3.0.1

Arguments

$options

array

addEntry

Method to add an entry to the log.

addEntry(\Joomla\CMS\Log\LogEntry $entry) : void
inherited abstract
since

3.0.1

throws

\RuntimeException

Arguments

$entry

\Joomla\CMS\Log\LogEntryThe log entry object to add to the log.

Properties

callback

The function to call when an entry is added

since

3.0.1

Type(s)

callable

options

Options array for the JLog instance.

inherited
since

3.0.1

Type(s)

array

priorities

Translation array for LogEntry priorities to text strings.

inherited
since

3.0.1

Type(s)

array