Closed miraclx closed 8 months ago
Resolves https://github.com/rust-cli/env_logger/issues/274.
The old behavior made it impossible to retain colors in custom sinks.
With this patch, the default behavior assumes non-color compliance with the sink. But this can be overridden with WriteStyle::Always.
WriteStyle::Always
What exactly does this PR change? I only see renamed variables, a cast that I don't think is necessary and some if {} else {} changed to then_some()?
if {} else {}
then_some()
This is superseded by #298
Resolves https://github.com/rust-cli/env_logger/issues/274.
The old behavior made it impossible to retain colors in custom sinks.
With this patch, the default behavior assumes non-color compliance with the sink. But this can be overridden with
WriteStyle::Always
.