-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix stderr color dependence on stdout #91
Conversation
I renamed the references to the coloring feature from Lines 10 to 12 in f12a2b3
That may be a mistake please let me know if I should roll that back. |
Thanks! I think this will fix #71 too.
I think this change makes sense, I'm not really sure why it was written that way, since There's some documentation around |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [simple_logger](https://github.com/borntyping/rust-simple_logger) | workspace.dependencies | major | `4.3.3` -> `5.0.0` | --- ### Release Notes <details> <summary>borntyping/rust-simple_logger (simple_logger)</summary> ### [`v5.0.0`](https://github.com/borntyping/rust-simple_logger/releases/tag/v5.0.0) [Compare Source](https://github.com/borntyping/rust-simple_logger/compare/v4.3.3...v5.0.0) #### What's Changed - Fix stderr color dependence on stdout by [@​spoutn1k](https://github.com/spoutn1k) in [https://github.com/borntyping/rust-simple_logger/pull/91](https://github.com/borntyping/rust-simple_logger/pull/91) - When using the `stderr` and `colors` features, logs will be printed in colour even when STDOUT is redirected. - Fixes [#​71](https://github.com/borntyping/rust-simple_logger/issues/71). - This also cleans up the feature names used in the code. All references should now be to the `colors` feature, not the `colored` dependency. - Removed `set_up_color_terminal` from the public API. This has been called by `init()` for a while now. #### New Contributors - [@​spoutn1k](https://github.com/spoutn1k) made their first contribution in [https://github.com/borntyping/rust-simple_logger/pull/91](https://github.com/borntyping/rust-simple_logger/pull/91) **Full Changelog**: borntyping/rust-simple_logger@v4.3.3...v5.0.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/andrzejressel/pulumi-wasm).
Hello,
I work with programs that pipe
stdout
often.simple_logger
would simply not print colored output tostderr
when that happened. This is due to thiscolored
issue.This PR aims to fix this by implementing a variation of the
set_up_color_terminal
function, enabled when thestderr
feature is selected on other platforms than Windows (For lack of testing environment).