public function log(RouteException $e) {
    if (empty($this->getConfig('log', $e))) {
      return;
    }

    $this->logger->critical("Exception thrown during the {$e->getOperation()} operation.<br /><strong>Response code:</strong> {$e->getCode()}<br /><strong>Response body:</strong><pre>{$e->getMessage()}</pre>");
  }