protected function addLogEntry(LogEntry $entry)
	{
		// Find all the appropriate loggers based on priority and category for the entry.
		$loggers = $this->findLoggers($entry->priority, $entry->category);

		foreach ((array) $loggers as $signature)
		{
			// Attempt to instantiate the logger object if it doesn't already exist.
			if (empty($this->loggers[$signature]))
			{
				$class = '\\Joomla\\Log\\Logger\\' . ucfirst($this->configurations[$signature]['logger']);

				if (class_exists($class))
				{
					$this->loggers[$signature] = new $class($this->configurations[$signature]);
				}
				else
				{
					throw new \RuntimeException('Unable to create a Joomla\\Log\\AbstractLogger instance: ' . $class);
				}
			}

			// Add the entry to the logger.
			$this->loggers[$signature]->addEntry(clone($entry));
		}
	}
protected function addLogEntry(LogEntry $entry)
	{
		// Find all the appropriate loggers based on priority and category for the entry.
		$loggers = $this->findLoggers($entry->priority, $entry->category);

		foreach ((array) $loggers as $signature)
		{
			// Attempt to instantiate the logger object if it doesn't already exist.
			if (empty($this->loggers[$signature]))
			{
				$class = '\\Joomla\\Log\\Logger\\' . ucfirst($this->configurations[$signature]['logger']);

				if (class_exists($class))
				{
					$this->loggers[$signature] = new $class($this->configurations[$signature]);
				}
				else
				{
					throw new \RuntimeException('Unable to create a Joomla\\Log\\AbstractLogger instance: ' . $class);
				}
			}

			// Add the entry to the logger.
			$this->loggers[$signature]->addEntry(clone($entry));
		}
	}
protected function addLogEntry ( LogEntry $ entry ) { // Find all the appropriate loggers based on priority and category for the entry. $ loggers = $ this -> findLoggers ( $ entry -> priority , $ entry -> category ) ; foreach ( ( array ) $ loggers as $ signature ) { // Attempt to instantiate the logger object if it doesn't already exist. if ( empty ( $ this -> loggers [ $ signature ] ) ) { $ class = '\\Joomla\\Log\\Logger\\' . ucfirst ( $ this -> configurations [ $ signature ] [ 'logger' ] ) ; if ( class_exists ( $ class ) ) { $ this -> loggers [ $ signature ] = new $ class ( $ this -> configurations [ $ signature ] ) ; } else { throw new \ RuntimeException ( 'Unable to create a Joomla\\Log\\AbstractLogger instance: ' . $ class ) ; } } // Add the entry to the logger. $ this -> loggers [ $ signature ] -> addEntry ( clone ( $ entry ) ) ; } }
Method to add an entry to the appropriate loggers.

@param   LogEntry  $entry  The LogEntry object to send to the loggers.

@return  void

@since   1.0
@throws  \RuntimeException
Method to add an entry to the appropriate loggers .