public function logStats($fatal, Logger $logger)
    {
        if (!$this->getErrors() && !$fatal) {
            return;
        }

        /** @var \Exception $error */
        foreach ($this->getErrors() as $error) {
            $logger->warning('  ' . $error->getMessage());
        }

        if ($fatal) {
            $logger->error('  ' . $fatal->getMessage());
        }
    }
public function logStats($fatal, Logger $logger)
    {
        if (!$this->getErrors() && !$fatal) {
            return;
        }

        /** @var \Exception $error */
        foreach ($this->getErrors() as $error) {
            $logger->warning('  ' . $error->getMessage());
        }

        if ($fatal) {
            $logger->error('  ' . $fatal->getMessage());
        }
    }
public function logStats ( $ fatal , Logger $ logger ) { if ( ! $ this -> getErrors ( ) && ! $ fatal ) { return ; } /** @var \Exception $error */ foreach ( $ this -> getErrors ( ) as $ error ) { $ logger -> warning ( '  ' . $ error -> getMessage ( ) ) ; } if ( $ fatal ) { $ logger -> error ( '  ' . $ fatal -> getMessage ( ) ) ; } }
Sends the errors of the given Rst document to the logger as a block.

If a fatal error occurred then this can be passed as the $fatal argument and is shown as such.

@param \Exception|null $fatal
Sends the errors of the given Rst document to the logger as a block .