src/Base/ErrorHandler.php
public function logException($exception)
    {
        $category = get_class($exception);
        if ($exception instanceof HttpException) {
            $category = 'Reaction\\Exceptions\\HttpException:' . $exception->statusCode;
        } elseif ($exception instanceof \ErrorException) {
            $category .= ':' . $exception->getSeverity();
        }
        $message = $exception->getMessage();
        $fileLine = '';
        if ($exception->getFile() && $exception->getLine()) {
            $fileLine = "\n" . $exception->getFile() . ':' . $exception->getLine();
        }
        $logMessage = $category . "\n" . $message . $fileLine;
        if (Console::streamSupportsAnsiColors(STDOUT)) {
            $logMessage = Console::ansiFormat($logMessage, [Console::FG_RED]);
        }
        Reaction::$app->logger->logRaw($logMessage);
    }
public function logException($exception)
    {
        $category = get_class($exception);
        if ($exception instanceof HttpException) {
            $category = 'Reaction\\Exceptions\\HttpException:' . $exception->statusCode;
        } elseif ($exception instanceof \ErrorException) {
            $category .= ':' . $exception->getSeverity();
        }
        $message = $exception->getMessage();
        $fileLine = '';
        if ($exception->getFile() && $exception->getLine()) {
            $fileLine = "\n" . $exception->getFile() . ':' . $exception->getLine();
        }
        $logMessage = $category . "\n" . $message . $fileLine;
        if (Console::streamSupportsAnsiColors(STDOUT)) {
            $logMessage = Console::ansiFormat($logMessage, [Console::FG_RED]);
        }
        Reaction::$app->logger->logRaw($logMessage);
    }
Logs the given exception.
@param \Exception $exception the exception to be logged