def METHOD_NAME(self):
    """Make sure error reporting is done correctly (no more log.error, log.exception)."""
    # easybuild.framework.__file__ provides location to <prefix>/easybuild/framework/__init__.py
    easybuild_loc = os.path.dirname(os.path.dirname(os.path.abspath(easybuild.framework.__file__)))
    log_method_regexes = [
        re.compile(r"log\.error\("),
        re.compile(r"log\.exception\("),
        re.compile(r"log\.raiseException\("),
    ]
    for dirpath, _, filenames in os.walk(easybuild_loc):
        # don't check Python modules in easybuild.base namespace (ingested vsc-base)
        if not dirpath.endswith('easybuild/base'):
            for filename in [f for f in filenames if f.endswith('.py')]:
                path = os.path.join(dirpath, filename)
                txt = read_file(path)
                for regex in log_method_regexes:
                    self.assertFalse(regex.search(txt), "No match for '%s' in %s" % (regex.pattern, path))