def setup_logging(verbosity, no_color, user_log_file):
<EOL>if verbosity >= <NUM_LIT:1>:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>elif verbosity == -<NUM_LIT:1>:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>elif verbosity == -<NUM_LIT:2>:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>elif verbosity <= -<NUM_LIT:3>:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>level_number = getattr(logging, level)<EOL>include_user_log = user_log_file is not None<EOL>if include_user_log:<EOL><INDENT>additional_log_file = user_log_file<EOL>root_level = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>additional_log_file = "<STR_LIT>"<EOL>root_level = level<EOL><DEDENT>vendored_log_level = "<STR_LIT>" if level in ["<STR_LIT>", "<STR_LIT>"] else "<STR_LIT>"<EOL>log_streams = {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>}<EOL>handler_classes = {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:file>": "<STR_LIT>",<EOL>}<EOL>logging.config.dictConfig({<EOL>"<STR_LIT:version>": <NUM_LIT:1>,<EOL>"<STR_LIT>": False,<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": logging.WARNING,<EOL>},<EOL>},<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": IndentingFormatter,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>},<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": IndentingFormatter,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": True,<EOL>},<EOL>},<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": level,<EOL>"<STR_LIT:class>": handler_classes["<STR_LIT>"],<EOL>"<STR_LIT>": no_color,<EOL>"<STR_LIT>": log_streams["<STR_LIT>"],<EOL>"<STR_LIT>": ["<STR_LIT>"],<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>},<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:class>": handler_classes["<STR_LIT>"],<EOL>"<STR_LIT>": no_color,<EOL>"<STR_LIT>": log_streams["<STR_LIT>"],<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>},<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:class>": handler_classes["<STR_LIT:file>"],<EOL>"<STR_LIT:filename>": additional_log_file,<EOL>"<STR_LIT>": True,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>},<EOL>},<EOL>"<STR_LIT:root>": {<EOL>"<STR_LIT>": root_level,<EOL>"<STR_LIT>": ["<STR_LIT>", "<STR_LIT>"] + (<EOL>["<STR_LIT>"] if include_user_log else []<EOL>),<EOL>},<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": vendored_log_level<EOL>}<EOL>},<EOL>})<EOL>return level_number<EOL>
Configures and sets up all of the logging

    Returns the requested logging level, as its integer value.