def query(self, json=None, **kwargs):  
path = "<STR_LIT>"<EOL>r = self._httpclient.request(<EOL>method="<STR_LIT:POST>",<EOL>url=self.url,<EOL>json=json,<EOL>path=path,<EOL>**kwargs<EOL>)<EOL>return r<EOL>
Generate a query that retrieves log records.

        Creates a query within the Logging Service that returns 0 or
        more log records. Query results can be returned in pages,
        depending on the size of your result set. You can retrieve pages
        using :meth:`poll`, :meth:`iter_poll`, :meth:`poll_all` or :meth:`xpoll`.

        Args:
            json (dict): Payload/request body.
            **kwargs: Supported :meth:`~pancloud.httpclient.HTTPClient.request` parameters.

        Returns:
            requests.Response: Requests Response() object.

        Examples:
            Refer to ``logging_query.py`` example.