tracing-rolling-file-inc 0.0.2

A rolling file appender with customizable rolling conditions.
Documentation

tracing-rolling-file-inc

Latest Version Rust Documentation minimum rustc: 1.42

A rolling file appender with customizable rolling conditions,optimized the output method of file names to make them more scientific. based on tracing-rolling-file.

This is useful to combine with the tracing crate and tracing_appender::non_blocking::NonBlocking -- use it as an alternative to tracing_appender::rolling::RollingFileAppender.

Examples

use tracing_rolling_file_inc::*;
let file_appender =
    RollingFileAppenderBase::new("./logs", "log", RollingConditionBase::new()
        .max_size(1024)
        .daily(), 50)?;