Skip to main content

log_entry

Function log_entry 

Source
pub fn log_entry(
    priority: Priority,
    line: &str,
    fields: &[(&str, String)],
) -> Delivery
Expand description

What: Writes one entry of a priority, with fields a reader can filter the journal on, and gives where it went. Why: The text is one line with the userinfo of every URL masked (a push or a review reports what Git and a server said), then it states its own time (stamped_line); a native entry also carries the time as CLI_GIT_AT_MS, the priority and the context. Nothing here waits: see journald_native.

In TS you’d write (pseudocode):

logEntry('warning', 'cannot listen', [['CLI_GIT_REQUEST_ID', id]])