merge log by Longest Common Subsequence

merge log by Longest Common Subsequence