Skip to main content

record_event

Function record_event 

Source
pub fn record_event(event: LogEvent)
Expand description

Emit one event. Always fans out to the broadcast hook + tracing event. If persistence is enabled, also appends a JSON line to disk.

This is the function the record! macro expands into. Direct callers (the schema migration tool, tests) can invoke it too, but production code should go through the macro so the tracing::event! carries the correct file:line source info.