Callback

Extends \Joomla\Log\AbstractLogger

Joomla! Callback Log class

deprecated

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

since

1.0

deprecated

The joomla/log package is deprecated

Methods

__construct

Constructor.

__construct(array &$options) 
inherited
since

1.0

Arguments

$options

array

addEntry

Method to add an entry to the log.

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

1.0

Arguments

$entry

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

Properties

callback

The function to call when an entry is added - should return True on success

since

1.0

Type(s)

callable

options

Options array for the Log instance.

inherited
since

1.0

Type(s)

array

priorities

Translation array for LogEntry priorities to text strings.

inherited
since

1.0

Type(s)

array