Struct sentry_log::SentryLogger
source · pub struct SentryLogger<L: Log> { /* private fields */ }
Expand description
Provides a dispatching logger.
Implementations§
source§impl SentryLogger<NoopLogger>
impl SentryLogger<NoopLogger>
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SentryLogger with a NoopLogger
as destination.
source§impl<L: Log> SentryLogger<L>
impl<L: Log> SentryLogger<L>
sourcepub fn filter<F>(self, filter: F) -> Self
pub fn filter<F>(self, filter: F) -> Self
Sets a custom filter function.
The filter classifies how sentry should handle Record
s based on
their log::Metadata
.
Trait Implementations§
source§impl Default for SentryLogger<NoopLogger>
impl Default for SentryLogger<NoopLogger>
source§impl<L: Log> Log for SentryLogger<L>
impl<L: Log> Log for SentryLogger<L>
Auto Trait Implementations§
impl<L> Freeze for SentryLogger<L>where
L: Freeze,
impl<L> !RefUnwindSafe for SentryLogger<L>
impl<L> Send for SentryLogger<L>
impl<L> Sync for SentryLogger<L>
impl<L> Unpin for SentryLogger<L>where
L: Unpin,
impl<L> !UnwindSafe for SentryLogger<L>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more