$index = $xs->index;
$index->flushLogging();

等价于

util/Indexer.php --flush-log demo