def write_entry(logger_name):
 logging_client = logging.Client()
 logger = logging_client.logger(logger_name)
 logger.log_text('Hello, world!')
 logger.log_text('Goodbye, world!', severity='ERROR')
 logger.log_struct({'name': 'King Arthur', 'quest': 'Find the Holy Grail', 'favorite_color': 'Blue'})
 print 'Wrote logs to {}.'.format(logger.name)

def write_entry ( logger_name ) : logging_client = logging . Client ( ) logger = logging_client . logger ( logger_name ) logger . log_text ( 'Hello, world!' ) logger . log_text ( 'Goodbye, world!' , severity = 'ERROR' ) logger . log_struct ( { 'name' : 'King Arthur' , 'quest' : 'Find the Holy Grail' , 'favorite_color' : 'Blue' } ) print 'Wrote logs to {}.' . format ( logger . name )
writes log entries to the given logger .