logo
pub struct SentryLogger<L: Log> { /* private fields */ }
Expand description

Provides a dispatching logger.

Implementations

Create a new SentryLogger with a NoopLogger as destination.

Create a new SentryLogger wrapping a destination log::Log.

Sets a custom filter function.

The filter classifies how sentry should handle Records based on their log::Metadata.

Sets a custom mapper function.

The mapper is responsible for creating either breadcrumbs or events from Records.

Trait Implementations

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

Determines if a log message with the specified metadata would be logged. Read more

Logs the Record. Read more

Flushes any buffered records.

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.