pub struct RollingFileAppenderBaseBuilder { /* private fields */ }
Implementations§
Source§impl RollingFileAppenderBaseBuilder
impl RollingFileAppenderBaseBuilder
Sourcepub fn filename(self, filename: String) -> Self
pub fn filename(self, filename: String) -> Self
Sets the log filename. Uses absolute path if provided, otherwise creates files in the current working directory.
Sourcepub fn max_filecount(self, max_filecount: usize) -> Self
pub fn max_filecount(self, max_filecount: usize) -> Self
Sets a condition for the maximum number of files to create before rolling over and deleting the oldest one.
Sourcepub fn condition_daily(self) -> Self
pub fn condition_daily(self) -> Self
Sets a condition to rollover on a daily basis
Sourcepub fn condition_hourly(self) -> Self
pub fn condition_hourly(self) -> Self
Sets a condition to rollover when the date or hour changes
Sourcepub fn condition_minutely(self) -> Self
pub fn condition_minutely(self) -> Self
Sets a condition to rollover when the date or minute changes
Sourcepub fn condition_max_file_size(self, x: u64) -> Self
pub fn condition_max_file_size(self, x: u64) -> Self
Sets a condition to rollover when a certain size is reached
Sourcepub fn build(self) -> Result<RollingFileAppenderBase, &'static str>
pub fn build(self) -> Result<RollingFileAppenderBase, &'static str>
Builds a RollingFileAppenderBase instance from the current settings.
Returns an error if the filename is empty.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RollingFileAppenderBaseBuilder
impl RefUnwindSafe for RollingFileAppenderBaseBuilder
impl Send for RollingFileAppenderBaseBuilder
impl Sync for RollingFileAppenderBaseBuilder
impl Unpin for RollingFileAppenderBaseBuilder
impl UnwindSafe for RollingFileAppenderBaseBuilder
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