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

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

Expand description

Configures and constructs a TraceLogger.

Implementations

👎 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.

👎 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.

source

pub fn with_span_entry(self, log_enters: bool) -> Self

👎 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.

👎 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.

👎 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.

👎 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.

👎 Deprecated since 0.1.1:

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

Complete the builder, returning a configured TraceLogger.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.