Struct log4rs::config::ConfigBuilder
source · [−]pub struct ConfigBuilder { /* private fields */ }
Expand description
A builder for Config
s.
Implementations
sourceimpl ConfigBuilder
impl ConfigBuilder
sourcepub fn appender(self, appender: Appender) -> ConfigBuilder
pub fn appender(self, appender: Appender) -> ConfigBuilder
Adds an appender.
sourcepub fn appenders<I>(self, appenders: I) -> ConfigBuilder where
I: IntoIterator<Item = Appender>,
pub fn appenders<I>(self, appenders: I) -> ConfigBuilder where
I: IntoIterator<Item = Appender>,
Adds appenders.
sourcepub fn logger(self, logger: Logger) -> ConfigBuilder
pub fn logger(self, logger: Logger) -> ConfigBuilder
Adds a logger.
sourcepub fn loggers<I>(self, loggers: I) -> ConfigBuilder where
I: IntoIterator<Item = Logger>,
pub fn loggers<I>(self, loggers: I) -> ConfigBuilder where
I: IntoIterator<Item = Logger>,
Adds loggers.
Auto Trait Implementations
impl !RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl !UnwindSafe for ConfigBuilder
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