'List log events.
List log events associated with the given workspace.
:param workspace_id: The workspace ID.
:param sort: Sorts the response according to the value of the
specified property, in ascending or descending order.
:param filter: A cacheable parameter that limits the results to
those matching the specified filter.
:param page_limit: The number of records to return in each page
of results. The default page limit is 100.
:param cursor: A token identifying the last value from the
previous page of results.'

def list_logs(self, workspace_id, sort=None, filter=None, page_limit=None, cursor=None):

    params = {'version': self.version, 'sort': sort, 'filter': filter, 'page_limit': page_limit, 'cursor': cursor}
    return self.request(method='GET', url='/v1/workspaces/{0}/logs'.format(workspace_id), params=params, accept_json=True)
