Skip to main content

append_record

Function append_record 

Source
pub fn append_record(
    history_file: &Path,
    record: &str,
    rotation: RotationPolicy,
) -> Result<bool>
Expand description

Append a record to the history file using a lock directory (<history_file>.lock).

Returns:

  • Ok(true) when a record was appended
  • Ok(false) when the lock could not be acquired (skip silently)