tracing-rolling-file-inc

Crates.iotracing-rolling-file-inc
lib.rstracing-rolling-file-inc
version0.0.2
sourcesrc
created_at2024-01-28 18:02:43.652226
updated_at2024-02-01 08:04:12.117913
descriptionA rolling file appender with customizable rolling conditions.
homepagehttps://github.com/luyikk/tracing-rolling-file
repositoryhttps://github.com/luyikk/tracing-rolling-file
max_upload_size
id1117776
size60,579
(luyikk)

documentation

https://docs.rs/tracing-rolling-file-inc/

README

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)?;
Commit count: 0

cargo fmt