Struct safe_network::LogFormatter
source · [−]pub struct LogFormatter;
Expand description
Tracing log formatter setup for easier span viewing
Trait Implementations
Returns the “default value” for a type. Read more
impl<S, N> FormatEvent<S, N> for LogFormatter where
S: Subscriber + for<'a> LookupSpan<'a>,
N: for<'a> FormatFields<'a> + 'static,
impl<S, N> FormatEvent<S, N> for LogFormatter where
S: Subscriber + for<'a> LookupSpan<'a>,
N: for<'a> FormatFields<'a> + 'static,
fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>
) -> Result
fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>
) -> Result
Write a log message for Event
in Context
to the given Writer
.
Auto Trait Implementations
impl RefUnwindSafe for LogFormatter
impl Send for LogFormatter
impl Sync for LogFormatter
impl Unpin for LogFormatter
impl UnwindSafe for LogFormatter
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more