def list(self):
response = requests.get(self.base_url)<EOL>if not response.ok:<EOL><INDENT>raise ServerException(<EOL>'<STR_LIT>'.format(response.status_code, response.text))<EOL><DEDENT>return {<EOL>host.get('<STR_LIT:name>'): [<EOL>log.get('<STR_LIT:key>')<EOL>for log<EOL>in host.get('<STR_LIT>')]<EOL>for host<EOL>in response.json().get('<STR_LIT:list>')<EOL>}<EOL>
Get all log sets

:return: Returns a dictionary where the key is the hostname or log set,
    and the value is a list of the log keys
:rtype: dict

:raises: This will raise a
    :class:`ServerException<logentries_api.exceptions.ServerException>`
    if there is an error from Logentries