def configure_logging(self):
root_logger = logging.getLogger('<STR_LIT>')<EOL>root_logger.setLevel(logging.DEBUG)<EOL>console = logging.StreamHandler(self.stderr)<EOL>console_level = {self.WARNING_LEVEL: logging.WARNING,<EOL>self.INFO_LEVEL: logging.INFO,<EOL>self.DEBUG_LEVEL: logging.DEBUG,<EOL>}.get(self.options.verbose_level, logging.DEBUG)<EOL>if console_level == logging.INFO:<EOL><INDENT>console.setLevel(logging.WARNING)<EOL><DEDENT>else:<EOL><INDENT>console.setLevel(console_level)<EOL><DEDENT>if logging.DEBUG == console_level:<EOL><INDENT>formatter = logging.Formatter(self.DEBUG_MESSAGE_FORMAT)<EOL><DEDENT>else:<EOL><INDENT>formatter = logging.Formatter(self.CONSOLE_MESSAGE_FORMAT)<EOL><DEDENT>logging.getLogger('<STR_LIT>').setLevel(logging.WARNING)<EOL>logging.getLogger('<STR_LIT>').setLevel(logging.WARNING)<EOL>console.setFormatter(formatter)<EOL>root_logger.addHandler(console)<EOL>return<EOL>
Create logging handlers for any log output.