Skip to main content

clear_log

Function clear_log 

Source
pub fn clear_log(path: &Path, write_lock: &Mutex<()>) -> Result<()>
Expand description

Remove events.jsonl. Takes the shared writer lock so an in-flight append from the Logger worker thread can finish first — without it, the writer could re-create the file between our remove_file and the next event landing.