Skip to main content

log_entry

Function log_entry 

Source
pub fn log_entry(
    existing: &str,
    today: &str,
    kind: &str,
    message: &str,
) -> String
Expand description

Prepend a dated, labelled entry to a log.md’s existing text, merging into the same-day section when it is already on top (newest first).