includes/helpers.php
/**
	 * Reports and, if enabled, logs the given exception using the current error handler. If `$forceLogging` is set
	 * to true, then the exception will always be logged regardless of the app's logging configuration.
	 *
	 * @param Exception $ex
	 * @param bool $forceLogging
	 * @return void
	 */
Reports and, if enabled, logs the given exception using the current error handler. If `$forceLogging` is set
to true, then the exception will always be logged regardless of the app's logging configuration.

@param Exception $ex
@param bool $forceLogging
@return void
Reports and if enabled logs the given exception using the current error handler . If ` $forceLogging ` is set to true then the exception will always be logged regardless of the app ' s logging configuration . @param Exception $ex @param bool $forceLogging @return void
function report(Exception $ex, $forceLogging = false) {
		$error = HorizonError::fromException($ex);
		$handler = ErrorMiddleware::getErrorHandler();
		$handler->report($error);
		if (ErrorMiddleware::canLog($error) || $forceLogging) {
			$handler->log($error);
		}
	}
function report ( Exception $ ex , $ forceLogging = false ) { $ error = HorizonError :: fromException ( $ ex ) ; $ handler = ErrorMiddleware :: getErrorHandler ( ) ; $ handler -> report ( $ error ) ; if ( ErrorMiddleware :: canLog ( $ error ) || $ forceLogging ) { $ handler -> log ( $ error ) ; } }
Reports and, if enabled, logs the given exception using the current error handler.
Reports and if enabled logs the given exception using the current error handler .