Struct tracing_log::trace_logger::Builder[][src]

pub struct Builder { /* fields omitted */ }
👎 Deprecated since 0.1.1:

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]

👎 Deprecated since 0.1.1:

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]

👎 Deprecated since 0.1.1:

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]

👎 Deprecated since 0.1.1:

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]

👎 Deprecated since 0.1.1:

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]

👎 Deprecated since 0.1.1:

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]

👎 Deprecated since 0.1.1:

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]

👎 Deprecated since 0.1.1:

use the tracing crate’s “log” feature flag instead

Complete the builder, returning a configured TraceLogger.

Trait Implementations

impl Debug for Builder[src]

impl Default for Builder[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.