pub struct LogBuilder<T: Drain> { /* private fields */ }Expand description
LogBuilder acts as builder for initializing the EnvLogger. It can be used change the enviromental variable used to provide the logging directives and also set the default log level filter.
Implementations§
Source§impl<T: Drain> LogBuilder<T>
impl<T: Drain> LogBuilder<T>
Sourcepub fn filter(self, module: Option<&str>, level: FilterLevel) -> Self
pub fn filter(self, module: Option<&str>, level: FilterLevel) -> Self
Adds filters to the logger
The given module (if any) will log at most the specified level provided. If no module is provided then the filter will apply to all log messages.
Auto Trait Implementations§
impl<T> Freeze for LogBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for LogBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for LogBuilder<T>where
T: Send,
impl<T> Sync for LogBuilder<T>where
T: Sync,
impl<T> Unpin for LogBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for LogBuilder<T>where
T: UnwindSafe,
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