-
Notifications
You must be signed in to change notification settings - Fork 280
Separate Dredd's application logging from subprocess and reporter output #1089
Comments
@honzajavorek , I will be glad to implement the above functionality in dredd, with your approval. Can you please tell me about logging in reporters, so finally dredd won't be using winston at all? |
@thesageinpilani I think this won't be easy to implement at all and will better be carried out by @michalholasek or me. I don't want to turn you down, I just do not expect this to be a nice experience and we could actually be able to figure it out ourselves. I did review your previous PR and I'd be very grateful if you could work on that instead so we can fix all the issues mentioned there. If this issue gets without addressing for 2 or 3 weeks, we failed to deliver the change on time and anyone is very welcome to contribute it if interested. But now I'd prefer if the maintainers could focus on the issue first. |
Thanks for the detailed review. I am grateful for guidance and support. 😀 |
@michalholasek one thought - looking at this it might be beneficial to keep the The downside is that the code executed between Might be still worth for all the cases where people do not need to debug the setup code. They wouldn't need to play with environment variables. What do you think? |
@honzajavorek Yep, I agree. |
After discussion with @honzajavorek, we decided on the following: A)
|
BREAKING CHANGE: `--loglevel`'s default value is now 'error'. See #1089 for more info.a
BREAKING CHANGE: `--loglevel`'s default value is now 'error'. See #1089 for more info.
A part of the effort to separate application logging from the reporters output. Addresses #1089, supersedes #1099, enables #765 BREAKING CHANGE: Instead of --level use --loglevel. The option is no longer able to affect reporter output, it only affects application logging output. Use --loglevel=silent instead of --silent, which is now removed. The --loglevel option now only accepts 'silent', 'error', 'warning', 'debug' as values.
A part of the effort to separate application logging from the reporters output. Addresses #1089, supersedes #1099, enables #765 BREAKING CHANGE: Instead of --level use --loglevel. The option is no longer able to affect reporter output, it only affects application logging output. Use --loglevel=silent instead of --silent, which is now removed. The --loglevel option now only accepts 'silent', 'error', 'warning', 'debug' as values.
A part of the effort to separate application logging from the reporters output. Addresses #1089, supersedes #1099, enables #765 BREAKING CHANGE: Instead of --level use --loglevel. The option is no longer able to affect reporter output, it only affects application logging output. Use --loglevel=silent instead of --silent, which is now removed. The --loglevel option now only accepts 'silent', 'error', 'warning', 'debug' as values.
A part of the effort to separate application logging from the reporters output. Addresses #1089, supersedes #1099, enables #765 BREAKING CHANGE: Instead of --level use --loglevel. The option is no longer able to affect reporter output, it only affects application logging output. Use --loglevel=silent instead of --silent, which is now removed. The --loglevel option now only accepts 'silent', 'error', 'warning', 'debug' as values.
A part of the effort to separate application logging from the reporters output. Addresses #1089, supersedes #1099, enables #765 BREAKING CHANGE: Instead of --level use --loglevel. The option is no longer able to affect reporter output, it only affects application logging output. Use --loglevel=silent instead of --silent, which is now removed. The --loglevel option now only accepts 'silent', 'error', 'warning', 'debug' as values.
A part of the effort to separate application logging from the reporters output. Addresses #1089, supersedes #1099, enables #765 BREAKING CHANGE: Instead of --level use --loglevel. The option is no longer able to affect reporter output, it only affects application logging output. Use --loglevel=silent instead of --silent, which is now removed. The --loglevel option now only accepts 'silent', 'error', 'warning', 'debug' as values.
🎉 This issue has been resolved in version 8.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Currently Dredd uses winston as it's main method of outputting to the command line. It has many flaws, primarily:
--names
option, and other parts of Dredd--level
option is inconvenient as it controls output of both application logging and reporter outputThe solution:
.github/ISSUE_TEMPLATE.md
file.process.stdout.write()
later on and remove the--level
option.The text was updated successfully, but these errors were encountered: