src/exceptions/Handler.php
public static function logException( \Exception $error ) {

		// fatal errors will already have been error_log()'d
		if( !static::isFatal($error) ) {
			$location = $error->getFile(). ':'. $error->getLine();
			// type hinting error - make sure we give the correct location
			if( ($error instanceof \InvalidArgumentException) && ($error->getPrevious() instanceof \ErrorException) )
				$location = $error->getPrevious()->getFile(). ':'. $error->getPrevious()->getLine();
			error_log(get_class($error). ': '. $error->getMessage(). " [{$location}]");
		}

	}
public static function logException( \Exception $error ) {

		// fatal errors will already have been error_log()'d
		if( !static::isFatal($error) ) {
			$location = $error->getFile(). ':'. $error->getLine();
			// type hinting error - make sure we give the correct location
			if( ($error instanceof \InvalidArgumentException) && ($error->getPrevious() instanceof \ErrorException) )
				$location = $error->getPrevious()->getFile(). ':'. $error->getPrevious()->getLine();
			error_log(get_class($error). ': '. $error->getMessage(). " [{$location}]");
		}

	}
public static function logException ( \ Exception $ error ) { // fatal errors will already have been error_log()'d if ( ! static :: isFatal ( $ error ) ) { $ location = $ error -> getFile ( ) . ':' . $ error -> getLine ( ) ; // type hinting error - make sure we give the correct location if ( ( $ error instanceof \ InvalidArgumentException ) && ( $ error -> getPrevious ( ) instanceof \ ErrorException ) ) $ location = $ error -> getPrevious ( ) -> getFile ( ) . ':' . $ error -> getPrevious ( ) -> getLine ( ) ; error_log ( get_class ( $ error ) . ': ' . $ error -> getMessage ( ) . " [{$location}]" ) ; } }
Log an exception to the error log.
@param \Exception $error
@return void
Log an exception to the error log .