pub struct LogLazyOptions { /* private fields */ }Expand description
Options for constructing a logger with the extensible API.
Implementations§
Source§impl LogLazyOptions
impl LogLazyOptions
pub fn new() -> Self
pub fn level<L>(self, level: L) -> Selfwhere
L: Into<OwnedLevelSpec>,
pub fn preset(self, name: impl Into<String>, mask: LevelMask) -> Self
pub fn sink<F>(self, sink: F) -> Self
pub fn preprocessor(self, preprocessor: Preprocessor) -> Self
pub fn preprocessor_fn<F>(self, preprocessor: F) -> Self
pub fn postprocessor(self, postprocessor: Postprocessor) -> Self
pub fn postprocessor_fn<F>(self, postprocessor: F) -> Self
Trait Implementations§
Source§impl Clone for LogLazyOptions
impl Clone for LogLazyOptions
Source§fn clone(&self) -> LogLazyOptions
fn clone(&self) -> LogLazyOptions
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 moreSource§impl Debug for LogLazyOptions
impl Debug for LogLazyOptions
Auto Trait Implementations§
impl Freeze for LogLazyOptions
impl !RefUnwindSafe for LogLazyOptions
impl Send for LogLazyOptions
impl Sync for LogLazyOptions
impl Unpin for LogLazyOptions
impl UnsafeUnpin for LogLazyOptions
impl !UnwindSafe for LogLazyOptions
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