pub struct LoggerOptions { /* private fields */ }Expand description
Logger configuration.
Implementations§
Source§impl LoggerOptions
impl LoggerOptions
pub fn new(level: LogLevel) -> Self
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Whether logging is disabled.
Sourcepub fn has_custom_handler(&self) -> bool
pub fn has_custom_handler(&self) -> bool
Whether a custom log handler is configured.
pub fn disabled(self, disabled: bool) -> Self
pub fn with_handler( self, handler: impl Fn(LogLevel, &str, &[&str]) + Send + Sync + 'static, ) -> Self
Trait Implementations§
Source§impl Clone for LoggerOptions
impl Clone for LoggerOptions
Source§fn clone(&self) -> LoggerOptions
fn clone(&self) -> LoggerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LoggerOptions
impl !UnwindSafe for LoggerOptions
impl Freeze for LoggerOptions
impl Send for LoggerOptions
impl Sync for LoggerOptions
impl Unpin for LoggerOptions
impl UnsafeUnpin for LoggerOptions
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