The unfortunate downside of that implementation is it disregards the WriteStyle specification.
No colors when piping to a custom sink is an acceptable default, but when the user specifies WriteStyle::Always, we should have colors written into our sink.
The patch https://github.com/rust-cli/env_logger/pull/239, while addressing issue https://github.com/rust-cli/env_logger/issues/208 made it so we can write to a custom sink without being in a test context.
The unfortunate downside of that implementation is it disregards the
WriteStyle
specification.No colors when piping to a custom sink is an acceptable default, but when the user specifies
WriteStyle::Always
, we should have colors written into our sink.