code: def log_wrapper(self):
          
          log = logging.getLogger('client.py')
  
          # Set the log format and log level
          try:
              debug = self.params["debug"]
              log.setLevel(logging.DEBUG)
          except KeyError:
              log.setLevel(logging.INFO)
  
          # Set the log format.
          stream = logging.StreamHandler()
          logformat = logging.Formatter(
              '%(asctime)s - %(name)s - %(levelname)s - %(message)s',
              datefmt='%b %d %H:%M:%S')
          stream.setFormatter(logformat)
  
          log.addHandler(stream)
          return log
docs: Wrapper to set logging parameters for output