def list_sinks():
 logging_client = logging.Client()
 sinks = list(logging_client.list_sinks())
 if (not sinks):
  print 'No sinks.'
 for sink in sinks:
  print '{}: {} -> {}'.format(sink.name, sink.filter_, sink.destination)

def list_sinks ( ) : logging_client = logging . Client ( ) sinks = list ( logging_client . list_sinks ( ) ) if ( not sinks ) : print 'No sinks.' for sink in sinks : print '{}: {} -> {}' . format ( sink . name , sink . filter_ , sink . destination )
lists all sinks .