Crates.io | tracing-rolling-file-inc |
lib.rs | tracing-rolling-file-inc |
version | 0.0.2 |
source | src |
created_at | 2024-01-28 18:02:43.652226 |
updated_at | 2024-02-01 08:04:12.117913 |
description | A rolling file appender with customizable rolling conditions. |
homepage | https://github.com/luyikk/tracing-rolling-file |
repository | https://github.com/luyikk/tracing-rolling-file |
max_upload_size | |
id | 1117776 |
size | 60,579 |
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.
use tracing_rolling_file_inc::*;
let file_appender =
RollingFileAppenderBase::new("./logs", "log", RollingConditionBase::new()
.max_size(1024)
.daily(), 50)?;