public function formatException(\Exception $exception, array $record = array())
    {
        $record['msg'] = $this->normalizeException($exception);

        return $this->format($record);
    }
public function formatException(\Exception $exception, array $record = array())
    {
        $record['msg'] = $this->normalizeException($exception);

        return $this->format($record);
    }
public function formatException ( \ Exception $ exception , array $ record = array ( ) ) { $ record [ 'msg' ] = $ this -> normalizeException ( $ exception ) ; return $ this -> format ( $ record ) ; }
Format exception with normalizer
And replace msg record with formatted exception

@param \Exception $exception
@param array $record
@return array|mixed|string
Format exception with normalizer And replace msg record with formatted exception