Struct tracing_subscriber::fmt::Subscriber [−][src]
pub struct Subscriber<N = DefaultFields, E = Format<Full>, F = LevelFilter, W = fn() -> Stdout> { /* fields omitted */ }
A Subscriber that logs formatted representations of tracing events.
This consists of an inner Formatter wrapped in a layer that performs filtering.
Implementations
impl Subscriber[src]
impl Subscriber[src]pub const DEFAULT_MAX_LEVEL: LevelFilter[src]
The maximum verbosity level that is enabled by a Subscriber by
default.
This can be overridden with the SubscriberBuilder::with_max_level method.
pub fn builder() -> SubscriberBuilder[src]
Returns a new SubscriberBuilder for configuring a format subscriber.
pub fn new() -> Self[src]
Returns a new format subscriber with the default configuration.
Trait Implementations
impl Default for Subscriber[src]
impl Default for Subscriber[src]impl<'a, N, E, F, W> LookupSpan<'a> for Subscriber<N, E, F, W> where
Layered<F, Formatter<N, E, W>>: LookupSpan<'a>, [src]
impl<'a, N, E, F, W> LookupSpan<'a> for Subscriber<N, E, F, W> where
Layered<F, Formatter<N, E, W>>: LookupSpan<'a>, [src]impl<N, E, F, W> Subscriber for Subscriber<N, E, F, W> where
N: for<'writer> FormatFields<'writer> + 'static,
E: FormatEvent<Registry, N> + 'static,
F: Layer<Formatter<N, E, W>> + 'static,
W: MakeWriter + 'static,
Layered<F, Formatter<N, E, W>>: Subscriber,
Layer<Registry, N, E, W>: Layer<Registry>, [src]
impl<N, E, F, W> Subscriber for Subscriber<N, E, F, W> where
N: for<'writer> FormatFields<'writer> + 'static,
E: FormatEvent<Registry, N> + 'static,
F: Layer<Formatter<N, E, W>> + 'static,
W: MakeWriter + 'static,
Layered<F, Formatter<N, E, W>>: Subscriber,
Layer<Registry, N, E, W>: Layer<Registry>, [src]fn register_callsite(&self, meta: &'static Metadata<'static>) -> Interest[src]
fn enabled(&self, meta: &Metadata<'_>) -> bool[src]
fn new_span(&self, attrs: &Attributes<'_>) -> Id[src]
fn record(&self, span: &Id, values: &Record<'_>)[src]
fn record_follows_from(&self, span: &Id, follows: &Id)[src]
fn event(&self, event: &Event<'_>)[src]
fn enter(&self, id: &Id)[src]
fn exit(&self, id: &Id)[src]
fn current_span(&self) -> Current[src]
fn clone_span(&self, id: &Id) -> Id[src]
fn try_close(&self, id: Id) -> bool[src]
fn max_level_hint(&self) -> Option<LevelFilter>[src]
unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>[src]
pub fn drop_span(&self, _id: Id)[src]
Auto Trait Implementations
impl<N, E, F, W> RefUnwindSafe for Subscriber<N, E, F, W> where
E: RefUnwindSafe,
F: RefUnwindSafe,
N: RefUnwindSafe,
W: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
N: RefUnwindSafe,
W: RefUnwindSafe,
impl<N, E, F, W> Send for Subscriber<N, E, F, W> where
E: Send,
F: Send,
N: Send,
W: Send,
E: Send,
F: Send,
N: Send,
W: Send,
impl<N, E, F, W> Sync for Subscriber<N, E, F, W> where
E: Sync,
F: Sync,
N: Sync,
W: Sync,
E: Sync,
F: Sync,
N: Sync,
W: Sync,
impl<N, E, F, W> Unpin for Subscriber<N, E, F, W> where
E: Unpin,
F: Unpin,
N: Unpin,
W: Unpin,
E: Unpin,
F: Unpin,
N: Unpin,
W: Unpin,
impl<N = DefaultFields, E = Format<Full, SystemTime>, F = LevelFilter, W = fn() -> Stdout> !UnwindSafe for Subscriber<N, E, F, W>
Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<S> SubscriberExt for S where
S: Subscriber, [src]
impl<S> SubscriberExt for S where
S: Subscriber, [src]impl<T> SubscriberInitExt for T where
T: Into<Dispatch>, [src]
impl<T> SubscriberInitExt for T where
T: Into<Dispatch>, [src]