code: def stdout_logging(loglevel=logging.INFO):
      
      logformat = "[%(asctime)s] %(levelname)s:%(name)s:%(lineno)d: %(message)s"
  
      logging.config.dictConfig(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