def METHOD_NAME(files):
    for f in files:
        if f is None:
            out = logging.StreamHandler(os.sys.stdout)
        else:
            out = logging.FileHandler(f)
        out.addFilter(ThreadFilter(['root',
                                    'log',
                                    'report',
                                    'validation',
                                    'echo',
                                    'soap']))
        out.setFormatter(context_fmt)
        yield [out]