code: def setup_logging(loglevel):
      
      logformat = "[%(asctime)s] %(levelname)s:%(name)s:%(message)s"
      logging.basicConfig(level=loglevel, stream=sys.stdout,
                          format=logformat, datefmt="%Y-%m-%d %H:%M:%S")
docs: Setup basic logging
  
      Args:
        loglevel (int): minimum loglevel for emitting messages