-
Notifications
You must be signed in to change notification settings - Fork 121
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
Setting log level in makefile #194
Comments
@jounathaen it has been something I thought about but decided against it. think of a project that some put log level in his makefile as verbose. that is why i think the machine level configuration in this case is more correct and allows you to personalize your experience without forcing it on others. what do you think? |
Hmm, that is a reasonable argument. But personally, I'm still not happy with the output verbosity at the moment. This is the output of my
All these information are great, when you have to debug the task, but when the task is run multiple times, this spams the terminal. My Idea: (Probably you have put more thoughts into this behaviour than me. But for me, the behaviour just feels a bit of, compared to other cargo commands) |
ok, so the issue is maybe that info shows too much and is closer to verbose than info... |
Yes, that is my impression.
I think, all information about which files/profiles/env are used belong to verbose output. My philosopy would be: Assume everything is running as it should run. Then no further output is required. If the user sees that it does not, he can easily investigate by adding A less radical step would be: Merging information about build file, task, profile, env into a single line. At the moment, even a simple command:
There is even some tasks, which are not defined in my makefile. What I personally would assume as an output is something like:
Bonus Question: Why does it print INFO before every command. Isn't every output on the commandline an "info"? 😄 Thanks for discussing my ideas 👍 |
@jounathaen I'll try to clean up the info a bit and move some stuff to debug. by the way, INFO is not always printed. trying breaking something and you start seeing WARN and ERROR too :) |
reduced the clutter a bit. still in a dev branch as got few more items to develop before i release it. |
releasing it today as part of 0.16.9 |
Hi, thank you for providing this useful tool!
Background: I personally think that the INFO output of cargo-make is a bit bloated. IMHO Many of the informations would belong in the verbose output.
Features Description
I'd like to set the log-level in the
Makefile.toml
.It seems that cargo-make does not read configurations from that file.
Describe the solution you'd like
Make (maybe all) configurations from the
config.toml
file overrideable in theMakefile.toml
file.Maybe in a
[config]
section.The text was updated successfully, but these errors were encountered: