Function tikv_util::logger::file_writer [−][src]
pub fn file_writer<N>(
path: impl AsRef<Path>,
rotation_timespan: ReadableDuration,
rotation_size: ReadableSize,
rename: N
) -> Result<BufWriter<RotatingFileLogger>> where
N: 'static + Send + Fn(&Path) -> Result<PathBuf>,
Constructs a new file writer which outputs log to a file at the specified path. The file writer rotates for the specified timespan.