Struct tracing_log::trace_logger::Builder
source · [−]pub struct Builder { /* private fields */ }
use the tracing
crate’s “log” feature flag instead
Expand description
Configures and constructs a TraceLogger
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn with_span_closes(self, log_span_closes: bool) -> Self
👎 Deprecated since 0.1.1: use the tracing
crate’s “log” feature flag instead
pub fn with_span_closes(self, log_span_closes: bool) -> Self
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will log
when a span closes.
sourcepub fn with_parent_fields(self, parent_fields: bool) -> Self
👎 Deprecated since 0.1.1: use the tracing
crate’s “log” feature flag instead
pub fn with_parent_fields(self, parent_fields: bool) -> Self
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will
include the fields of parent spans when formatting events.
sourcepub fn with_span_entry(self, log_enters: bool) -> Self
👎 Deprecated since 0.1.1: use the tracing
crate’s “log” feature flag instead
pub fn with_span_entry(self, log_enters: bool) -> Self
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will log
when a span is entered.
If this is set to false, fields from the current span will still be recorded as context, but the actual entry will not create a log record.
sourcepub fn with_span_exits(self, log_exits: bool) -> Self
👎 Deprecated since 0.1.1: use the tracing
crate’s “log” feature flag instead
pub fn with_span_exits(self, log_exits: bool) -> Self
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will log
when a span is exited.
sourcepub fn with_ids(self, log_ids: bool) -> Self
👎 Deprecated since 0.1.1: use the tracing
crate’s “log” feature flag instead
pub fn with_ids(self, log_ids: bool) -> Self
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will
include span IDs when formatting log output.
sourcepub fn with_parent_names(self, log_parent: bool) -> Self
👎 Deprecated since 0.1.1: use the tracing
crate’s “log” feature flag instead
pub fn with_parent_names(self, log_parent: bool) -> Self
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will
include the names of parent spans as context when formatting events.
sourcepub fn finish(self) -> TraceLogger
👎 Deprecated since 0.1.1: use the tracing
crate’s “log” feature flag instead
pub fn finish(self) -> TraceLogger
use the tracing
crate’s “log” feature flag instead
Complete the builder, returning a configured TraceLogger
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more