private function logException($message, $exception)
    {
        return $this->app['logger.system']->error(
            $message . ': ' . $exception->getMessage(),
            ['event' => 'exception', 'exception' => $exception]
        );
    }
private function logException($message, $exception)
    {
        return $this->app['logger.system']->error(
            $message . ': ' . $exception->getMessage(),
            ['event' => 'exception', 'exception' => $exception]
        );
    }
private function logException ( $ message , $ exception ) { return $ this -> app [ 'logger.system' ] -> error ( $ message . ': ' . $ exception -> getMessage ( ) , [ 'event' => 'exception' , 'exception' => $ exception ] ) ; }
Log an exception to the system log.

@param string     $message   A formatted error message
@param \Exception $exception The exception that has been thrown

@return bool Whether the record has been processed
Log an exception to the system log .