Struct log4rs_rolling_file::RollingFileAppenderBuilder
[−]
[src]
pub struct RollingFileAppenderBuilder { // some fields omitted }
A builder for the RollingFileAppender
.
Methods
impl RollingFileAppenderBuilder
[src]
fn append(self, append: bool) -> RollingFileAppenderBuilder
Determines if the appender will append to or truncate the log file.
Defaults to true
.
fn encoder(self, encoder: Box<Encode>) -> RollingFileAppenderBuilder
Sets the encoder used by the appender.
Defaults to a PatternEncoder
with the default pattern.
fn build<P>(self, path: P, policy: Box<Policy>) -> RollingFileAppender where P: AsRef<Path>
Constructs a RollingFileAppender
.