code: def main(sleep_length=0.1):
      
      log = logging.getLogger('sip.examples.log_spammer')
  
      log.info('Starting to spam log messages every %fs', sleep_length)
      counter = 0
      try:
          while True:
              log.info('Hello %06i (log_spammer: %s, sip logging: %s)',
                       counter, _version.__version__, __version__)
              counter += 1
              time.sleep(sleep_length)
      except KeyboardInterrupt:
          log.info('Exiting...')
docs: Log to stdout using python logging in a while loop