log merge