def METHOD_NAME(self, lines, level=0):
    """Write multiple messages."""
    for line in lines:
        for sline in line.rstrip(u'\n').split(u'\n'):
            self.write(sline.rstrip(u'\n'), level=level)