pub fn open_append(path: &Path) -> Result<BufWriter<File>>Expand description
Open or create a file for appending at path, optionally syncing after
every write. Use this for append-only logs like audit.log.
The returned BufWriter<fs::File> wraps the append handle. Call
.flush() followed by .get_ref().sync_all() after each batch.