Trait prima_tracing::EventFormatter
source · [−]pub trait EventFormatter {
fn format_event<S>(
&self,
event: &Event<'_>,
ctx: Context<'_, S>,
info: ContextInfo<'_>
) -> Result<Vec<u8>, Error>
where
S: Subscriber + for<'a> LookupSpan<'a>;
}Expand description
EventFormatter allows you to customise the format of tracing::Event if the prima-json-logger feature is active