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§

source§

impl Builder

source

pub fn with_span_closes(self, log_span_closes: 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 closes.

source

pub fn with_parent_fields(self, parent_fields: 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 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.

source

pub fn with_span_exits(self, log_exits: 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 exited.

source

pub fn with_ids(self, log_ids: 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 include span IDs when formatting log output.

source

pub fn with_parent_names(self, log_parent: 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 include the names of parent spans as context when formatting events.

source

pub fn finish(self) -> TraceLogger

👎Deprecated since 0.1.1: use the tracing crate’s “log” feature flag instead

Complete the builder, returning a configured TraceLogger.

Trait Implementations§

source§

impl Debug for Builder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Builder

source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.