@snippet
def client_list_entries(client, to_delete):
 for entry in client.list_entries():
  do_something_with(entry)
 FILTER = 'logName:log_name AND textPayload:simple'
 for entry in client.list_entries(filter_=FILTER):
  do_something_with(entry)
 from google.cloud.logging import DESCENDING
 for entry in client.list_entries(order_by=DESCENDING):
  do_something_with(entry)
 iterator = client.list_entries()
 pages = iterator.pages
 page1 = next(pages)
 for entry in page1:
  do_something_with(entry)
 page2 = next(pages)
 for entry in page2:
  do_something_with(entry)

@ snippet def client_list_entries ( client , to_delete ) : for entry in client . list_entries ( ) : do_something_with ( entry ) FILTER = 'logName:log_name AND textPayload:simple' for entry in client . list_entries ( filter_ = FILTER ) : do_something_with ( entry ) from google . cloud . logging import DESCENDING for entry in client . list_entries ( order_by = DESCENDING ) : do_something_with ( entry ) iterator = client . list_entries ( ) pages = iterator . pages page1 = next ( pages ) for entry in page1 : do_something_with ( entry ) page2 = next ( pages ) for entry in page2 : do_something_with ( entry )
list entries via client .