Trait prima_tracing::EventFormatter

source ·
pub trait EventFormatter {
    // Required method
    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 json-logger feature is active

Required Methods§

source

fn format_event<S>( &self, event: &Event<'_>, ctx: Context<'_, S>, info: ContextInfo<'_> ) -> Result<Vec<u8>, Error>
where S: Subscriber + for<'a> LookupSpan<'a>,

Object Safety§

This trait is not object safe.

Implementors§