Struct rustracing::log::StdErrorLogFieldsBuilder[][src]

pub struct StdErrorLogFieldsBuilder<'a>(_);

A specialized span log builder for the standard error log fields.

This builder automatically inserts the field LogField::new("event", "error").

Methods

impl<'a> StdErrorLogFieldsBuilder<'a>
[src]

Important traits for &'a mut R

Adds the field LogField::new("error.kind", kind).

kind is the type or "kind" of an error.

E.g., "Exception", "OSError"

Important traits for &'a mut R

Adds the field LogField::new("message", message).

message is a concise, human-readable, one-line message explaining the event.

E.g., "Could not connect to backend", "Cache invalidation succeeded"

Important traits for &'a mut R

Adds "error.kind" and "message" fields.

These values are error.description() and error.to_string() respectively.

Important traits for &'a mut R

Adds the field LogField::new("stack", {stack trace}).

Trait Implementations

impl<'a> Debug for StdErrorLogFieldsBuilder<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations