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