protected function logException(\Throwable $exception, string $file = null): string
    {
        $file = $file ?: $this->getExceptionFile($exception);
        $bs = $this->blueScreen ?: new BlueScreen;
        $bs->renderToFile($exception, $file);

        return $file;
    }