log and snapshot