code: def logger():
      
  
      scriptlogger = logging.getLogger(__program__)
  
      # ensure logger is not reconfigured
      if not scriptlogger.hasHandlers():
  
          # set log level
          scriptlogger.setLevel(logging.INFO)
  
          fmt = '%(name)s:%(levelname)s: %(message)s'
  
          # configure terminal log
          streamhandler = logging.StreamHandler()
          streamhandler.setFormatter(logging.Formatter(fmt))
          scriptlogger.addHandler(streamhandler)
docs: Configure program logger.