Struct tracing_log::trace_logger::Builder
source · pub struct Builder { /* private fields */ }
tracing
crate’s “log” feature flag insteadtrace-logger
only.Expand description
Configures and constructs a TraceLogger
.
Implementations§
source§impl 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
tracing
crate’s “log” feature flag insteadConfigures 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
tracing
crate’s “log” feature flag insteadConfigures 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
tracing
crate’s “log” feature flag insteadConfigures 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
tracing
crate’s “log” feature flag insteadConfigures 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
tracing
crate’s “log” feature flag insteadConfigures 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
tracing
crate’s “log” feature flag insteadConfigures 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
tracing
crate’s “log” feature flag insteadComplete the builder, returning a configured TraceLogger
.