code/error/error.php
public static function handleLog(&$error, $options)
	{
		JLog::add('JError::handleLog() is deprecated.', JLog::WARNING, 'deprecated');

		static $log;

		if ($log == null)
		{
			$options['text_file'] = date('Y-m-d') . '.error.log';
			$options['format'] = "{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}";
			JLog::addLogger($options, JLog::ALL, array('error'));
		}

		$entry = new JLogEntry(
			str_replace(array("\r", "\n"), array('', '\\n'), $error->get('message')),
			$error->get('level'),
			'error'
		);
		$entry->code = $error->get('code');
		JLog::add($entry);

		return $error;
	}
public static function handleLog(&$error, $options)
	{
		JLog::add('JError::handleLog() is deprecated.', JLog::WARNING, 'deprecated');

		static $log;

		if ($log == null)
		{
			$options['text_file'] = date('Y-m-d') . '.error.log';
			$options['format'] = "{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}";
			JLog::addLogger($options, JLog::ALL, array('error'));
		}

		$entry = new JLogEntry(
			str_replace(array("\r", "\n"), array('', '\\n'), $error->get('message')),
			$error->get('level'),
			'error'
		);
		$entry->code = $error->get('code');
		JLog::add($entry);

		return $error;
	}
public static function handleLog ( & $ error , $ options ) { JLog :: add ( 'JError::handleLog() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; static $ log ; if ( $ log == null ) { $ options [ 'text_file' ] = date ( 'Y-m-d' ) . '.error.log' ; $ options [ 'format' ] = "{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}" ; JLog :: addLogger ( $ options , JLog :: ALL , array ( 'error' ) ) ; } $ entry = new JLogEntry ( str_replace ( array ( "\r" , "\n" ) , array ( '' , '\\n' ) , $ error -> get ( 'message' ) ) , $ error -> get ( 'level' ) , 'error' ) ; $ entry -> code = $ error -> get ( 'code' ) ; JLog :: add ( $ entry ) ; return $ error ; }
Log error handler
Logs the error message to a system log file

@param   JException  &$error   Exception object to handle
@param   array       $options  Handler options

@return  JException  The exception object

@deprecated  12.1
@see         JError::raise()
@since       11.1
Log error handler Logs the error message to a system log file