pub struct Logger { /* private fields */ }
Expand description
Provides a dispatching logger.
Implementations
sourceimpl Logger
impl Logger
sourcepub fn new(dest: Option<Box<dyn Log>>, options: LoggerOptions) -> Logger
pub fn new(dest: Option<Box<dyn Log>>, options: LoggerOptions) -> Logger
Initializes a new logger.
It can just send to Sentry or additionally also send messages to another logger.
sourcepub fn options(&self) -> &LoggerOptions
pub fn options(&self) -> &LoggerOptions
Returns the options of the logger.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl !UnwindSafe for Logger
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more