Skip to main content

append_event

Function append_event 

Source
pub fn append_event(
    dir: &Path,
    t_ms: u64,
    kind: &str,
    fields: Value,
) -> Result<()>
Expand description

Append an event of kind at t_ms to dir’s file for the month. fields is a JSON object of numbers and short names; t and kind are added to it. BLOCKING (a file append). Errors are the caller’s to log; an event is never a reason for anything else to fail.