def METHOD_NAME(self, stack, record):
    # we might need to traverse this multiple times, so coerce it to a list
    stack = list(stack)
    frames = []
    started = False
    last_mod = ''
    for item in stack:
        if isinstance(item, (list, tuple)):
            frame, lineno = item
        else:
            frame, lineno = item, item.f_lineno
        if not started:
            f_globals = getattr(frame, 'f_globals', {})
            module_name = f_globals.get('__name__', '')
            if ((last_mod and last_mod.startswith('logging')) and
                    not module_name.startswith('logging')):
                started = True
            else:
                last_mod = module_name
                continue
        frames.append((frame, lineno))
    # We failed to find a starting point
    if not frames:
        return stack
    return frames