def get_logging_level(logging_stmt, commented_out=False):
regexp = RE_LOGGING_START_IN_COMMENT if commented_out else RE_LOGGING_START<EOL>ret = regexp.match(logging_stmt)<EOL>_, method_name, _, first_arg = ret.groups()<EOL>if method_name not in LOGGING_METHODS_OF_INTEREST:<EOL><INDENT>logging.debug('<STR_LIT>' % method_name)<EOL>return False<EOL><DEDENT>if method_name != '<STR_LIT>':<EOL><INDENT>return method_name<EOL><DEDENT>if not first_arg:<EOL><INDENT>logging.warning("<STR_LIT>")<EOL>return None<EOL><DEDENT>level = first_arg_to_level_name(first_arg)<EOL>if level is None:<EOL><INDENT>logging.warning("<STR_LIT>" % first_arg)<EOL>return None<EOL><DEDENT>return level<EOL>
Determines the level of logging in a given logging statement.  The string
    representing this level is returned.  False is returned if the method is
    not a logging statement and thus has no level.  None is returned if a level
    should have been found but wasn't.