Implement LogSegment.