def METHOD_NAME(debug=False):
    # type: (bool) -> None
    """
    Initialize logging for this script.
    """
    if debug:
        log_level = logging.DEBUG
    else:
        log_level = logging.INFO
    # pylint: disable=no-member
    loggers = [logging.getLogger(name) for name in logging.root.manager.loggerDict]  # type: ignore
    # pylint: enable=no-member
    for logger in loggers:
        logger.setLevel(log_level)
    logging.basicConfig(level=log_level)