tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.53k stars 726 forks source link

RollingFileAppender: prefix and suffix custom separator #3037

Open LardyFlorian opened 4 months ago

LardyFlorian commented 4 months ago

Feature Request

Crates

tracing_appender

Motivation

When logging in a file using a daily rotation with a prefix and / or a suffix, we might want to use another separator than a dot.

Proposal

Add customizable separator for prefix / filename and suffix (better if they are not the same) so that we can define specific separator for both elements.

We can still have dot as default separator if not configured.

The only unknown point would be how to handle the separator when in NEVER rotation with filename and suffix. Maybe use the prefix / filename separator as default ?

Alternatives