Cleanup log lines.