Skip to main content

collect_log_fields

Function collect_log_fields 

Source
pub fn collect_log_fields() -> Vec<(&'static str, String)>
Expand description

Collect the current context log fields as (name, formatted_value) pairs.

Returns only fields that have log enrichment enabled and a value set in the current context. Never panics.

This is the public primitive for custom formatters.