Expose `with_ansi` and `with_ansi_sanitization` for `Writer`
Author: eirnymCreated Aug 11, 2026Updated Aug 11, 2026
Feature Request
Crates
tracing_subscriber
Motivation
There's only way to output ANSI colors in level and other fields for event formatter is to use default event formatters. If one desires to output e.g. log level in way other than default, it's impossible to write custom event writer with ANSI output.
Proposal
replace pub(crate) to pub. There's also comments asking to expose these methods.
Alternatives
Source: tokio-rs/tracing