def METHOD_NAME(log_level=logging.INFO) -> None:
    """
    Configures the python logging environment for LocalStack.
    :param log_level: the optional log level.
    """
    # set create a default handler for the root logger (basically logging.basicConfig but explicit)
    log_handler = create_default_handler(log_level)
    # replace any existing handlers
    logging.basicConfig(level=log_level, handlers=[log_handler])
    # disable some logs and warnings
    warnings.filterwarnings("ignore")
    logging.captureWarnings(True)
    # set log levels of loggers
    logging.root.setLevel(log_level)
    logging.getLogger("localstack").setLevel(log_level)
    for logger, level in default_log_levels.items():
        logging.getLogger(logger).setLevel(level)