-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
[Question] How to remove logging in watch mode? #2019
Comments
I don't think you can. |
Yes, no ability, why do you need this? |
This will be possible when webpack-cli would use There are two issues to use it in plugin
|
@evilebottnawi Hello, there is my scenarios: I use webpack-cli watch mode to build project automatically. And I use a webpack plugin named But the console always print '99% done plugins watchInfo[webpack-cli] Compilation finished [webpack-cli] watching files for updates...' when building success. So, I want a way to remove this message. |
@piecyk Hello, I want a flag to open/close the logger in Line 288 and Line 340 of the file And my webpack-cli version is 4.1.0 |
Seems to be a valid use-case to me. Many users may prefer to have a less verbose output in watch-mode. |
@BigMeat233 output from webpack should be controlled by the level in infrastructureLogging So you would configure it in webpack config via infrastructureLogging: {
level: "error"
}, |
@piecyk Thanks for your anwser. But I still can't hide the cli logging message in watch mode:
|
@BigMeat233 because it's not implemented yet. |
In theory we can respect |
@evilebottnawi yep i think that also, would go into this direction |
@evilebottnawi can you have a quick look at that branch https://github.com/piecyk/webpack-cli/tree/webpack-cli/infrastructure-logging, ping me if that is something we would like to merge, need to fix tests 🙈 |
Looks good, but I am afraid it is not solve the whole problem, we use logger out of plugin too, so I think right way to fix it, just read the |
Yes we do. Most cases we log errors and exit process so in that case tooling based on webpack will never reach them, like At first started also with replacing So decided going simpler, for now we can switch to infrastructureLogging in WebpackCLIPlugin that handles output from webpack what 99% users wants. |
Yep, anyway feel free to send a PR and we continue improvements in PR, code looks good |
Ok, pushed a PR. Let's discuss there, i'm proposing there some changes to messages we log. |
I find cli always printing message(ex: Compilation finished, watching files for updates) in v4.
But I only need the error message.
So how to close the success message in v4?
The text was updated successfully, but these errors were encountered: