src/Debugger/Logger.php
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;
    }
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;
    }
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 ; }
Logs exception to the file if file doesn't exist.

@param \Throwable $exception
@param string     $file

@return string logged error filename
Logs exception to the file if file doesn t exist .