def set_root_logger_from_verbosity(verbosity=0):
    """Configure root logger according to both application settings
    and verbosity level.
    """
    kwargs = {}
    if verbosity == 1:
        kwargs.update(level=logging.INFO)
    elif verbosity > 1:
        kwargs.update(level=logging.DEBUG)

    set_root_logger(**kwargs)
Configure root logger according to both application settings
    and verbosity level.