Back to Joomla project (class list)

Class InMemoryLogger - list of methods

Logger class that keeps all entries in memory

Extends

Package: Joomla\CMS\Log\Logger
Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Log/Logger/InMemoryLogger.php
Project: Joomla

Method Summary

public
(array &$options)

Constructor.
Parameters
  • array & $options Log object options.
Since
  • 4.0.0
Show source code of this method: __construct Source Code

public void
(\Joomla\CMS\Log\LogEntry $entry)

Method to add an entry to the log.
Parameters
  • \Joomla\CMS\Log\LogEntry $entry The log entry object to add to the log.
Returns
  • void
Since
  • 4.0.0
Show source code of this method: addEntry Source Code

public array
()

Returns a list of collected entries.
Returns
  • array
Since
  • 4.0.0
Show source code of this method: getCollectedEntries Source Code

Properties Summary

protected static array
$logEntries
List of collected log entries, grouped by $group
Since
  • 4.0.0
protected string
$group
Group name to store the entries
Since
  • 4.0.0

Tags Summary

Since
4.0.0