Struct log4rs::append::rolling_file::RollingFileAppenderBuilder
source · [−]pub struct RollingFileAppenderBuilder { /* private fields */ }
Expand description
A builder for the RollingFileAppender
.
Implementations
sourceimpl RollingFileAppenderBuilder
impl RollingFileAppenderBuilder
sourcepub fn append(self, append: bool) -> RollingFileAppenderBuilder
pub fn append(self, append: bool) -> RollingFileAppenderBuilder
Determines if the appender will append to or truncate the log file.
Defaults to true
.
sourcepub fn encoder(self, encoder: Box<dyn Encode>) -> RollingFileAppenderBuilder
pub fn encoder(self, encoder: Box<dyn Encode>) -> RollingFileAppenderBuilder
Sets the encoder used by the appender.
Defaults to a PatternEncoder
with the default pattern.
Auto Trait Implementations
impl !RefUnwindSafe for RollingFileAppenderBuilder
impl Send for RollingFileAppenderBuilder
impl Sync for RollingFileAppenderBuilder
impl Unpin for RollingFileAppenderBuilder
impl !UnwindSafe for RollingFileAppenderBuilder
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