build log compaction