Struct log4rs::config::LoggerBuilder
source · [−]pub struct LoggerBuilder { /* private fields */ }
Expand description
A builder for Logger
s.
Implementations
sourceimpl LoggerBuilder
impl LoggerBuilder
sourcepub fn appender<T>(self, appender: T) -> LoggerBuilder where
T: Into<String>,
pub fn appender<T>(self, appender: T) -> LoggerBuilder where
T: Into<String>,
Adds an appender.
sourcepub fn appenders<I>(self, appenders: I) -> LoggerBuilder where
I: IntoIterator,
I::Item: Into<String>,
pub fn appenders<I>(self, appenders: I) -> LoggerBuilder where
I: IntoIterator,
I::Item: Into<String>,
Adds appenders.
sourcepub fn additive(self, additive: bool) -> LoggerBuilder
pub fn additive(self, additive: bool) -> LoggerBuilder
Sets the additivity of the logger.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LoggerBuilder
impl Send for LoggerBuilder
impl Sync for LoggerBuilder
impl Unpin for LoggerBuilder
impl UnwindSafe for LoggerBuilder
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