Skip to main content

render_msg_template

Function render_msg_template 

Source
pub fn render_msg_template(fmt_str: &str, properties: &Object<'_>) -> String
Expand description

Renders a log message from the template the instrumented process deferred: fmt_str with each {name} or {name:?} replaced by the string property name.

A missing property, or a placeholder outside that grammar, is copied through unchanged, so a corrupt or hand-built block stays readable instead of failing.