Back to EchoLogger 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
  • 1.7.0
Class: EchoLogger
Project: Joomla

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   1.7.0
 */
public function addEntry(LogEntry $entry)
{
    echo $this->priorities[$entry->priority] . ': ' . $entry->message . (empty($entry->category) ? '' : ' [' . $entry->category . ']') . $this->line_separator;
}