Back to CallbackLogger class

Method addEntry

public void
addEntry
(\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
  • 3.0.1
-
  • \RuntimeException

Method addEntry - Source code

/**
 * Method to add an entry to the log.
 *
 * @param   LogEntry  $entry  The log entry object to add to the log.
 *
 * @return  void
 *
 * @since   3.0.1
 * @throws  \RuntimeException
 */
public function addEntry(LogEntry $entry)
{
    // Pass the log entry to the callback function
    \call_user_func($this->callback, $entry);
}