Struct tracing_log::trace_logger::Builder [−][src]
use the tracing
crate’s “log” feature flag instead
Configures and constructs a TraceLogger
.
Implementations
impl Builder
[src]
pub fn with_span_closes(self, log_span_closes: bool) -> Self
[src]
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will log
when a span closes.
pub fn with_parent_fields(self, parent_fields: bool) -> Self
[src]
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.
pub fn with_span_entry(self, log_enters: bool) -> Self
[src]
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.
pub fn with_span_exits(self, log_exits: bool) -> Self
[src]
use the tracing
crate’s “log” feature flag instead
Configures whether or not the TraceLogger
being constructed will log
when a span is exited.
pub fn with_ids(self, log_ids: bool) -> Self
[src]
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.
pub fn with_parent_names(self, log_parent: bool) -> Self
[src]
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.
pub fn finish(self) -> TraceLogger
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,