def METHOD_NAME(self, logfile):
    """
    Verify if the name of the log file matches the required pattern.
    :param str name: file name
    :return: re.match result
    :rtype: re.Match object or None.
    """
    res = self.stamppattern.match(logfile)
    if not res:
        res = self.pattern.match(logfile)
    if not res:
        sLog.error(
            "Pilot UUID does not match the UUID nor the stamp pattern. ",
            f"UUID: {logfile}, pilot stamp pattern {self.stamppattern}, UUID pattern {self.pattern}",
        )
    return res