def send(self):
        """Send append data from files to servers."""

        for watchedfile in self.watchedfiles:
            for line in watchedfile.readLines():
                line = line.strip()
                level = self._get_msg_level(line, self.log_type)
                # Get rid of duplicated information in anaconda logs
                line = re.sub(
                    msg_levels[self.log_type]['regex'] + "\s*:?\s?",
                    "",
                    line
                )
                # Ignore meaningless errors
                try:
                    for r in relevel_errors[self.log_type]:
                        if level == r['levelfrom'] and \
                                re.match(r['regex'], line):
                            level = r['levelto']
                except __HOLE__:
                    pass
                self.logger.log(level, line)
                main_logger and main_logger.log(
                    level,
                    'From file "%s" send: %s' % (watchedfile.name, line)
                )
dataset/ETHPy150Open openstack/bareon/contrib/fuel_bootstrap/files/trusty/usr/bin/send2syslog.py/WatchedGroup.send