pub fn record(path: &Path, records: &[Record]) -> Result<()>
Appends records to the log at path, moving a full log aside first.
records
path
When the log cannot be written.