InMemoryLogger

Extends \Joomla\CMS\Log\Logger

Logger class that keeps all entries in memory

This class is used to be the basis of logger classes to allow for defined functions to exist regardless of the child class.

since

4.0.0

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.

getCollectedEntries

Returns a list of collected entries.

getCollectedEntries() : array
since

4.0.0

Response

array

Properties

logEntries

List of collected log entries, grouped by $group

static
since

4.0.0

Type(s)

array

group

Group name to store the entries

since

4.0.0

Type(s)

string

options

Options array for the Log 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