Skip to content
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

Feature Request: loglevel output control #115

Open
jasonkarns opened this issue Mar 10, 2021 · 0 comments
Open

Feature Request: loglevel output control #115

jasonkarns opened this issue Mar 10, 2021 · 0 comments

Comments

@jasonkarns
Copy link

I would like to silence the output of non-modified files.

I first tried silencing STDOUT, but that also silenced the output of files that are modified. (Would be nice if these were on different streams.)

Then, acknowledging that prettier-standard uses prettierx under the hood, I started throwing prettier's CLI flags. --loglevel warn|silent|error etc.

Then I just started guessing with --silent, --quiet, -q, etc.

Ideally what I'd like is for the output of non modified files to go to a different stream than the names of files that are modified. I don't have strong opinions on which goes where. On one hand, printing files that aren't modified on STDERR could make sense (that would be considered diagnostic output since prettier-standard's primary purpose is to format files). OTOH, files that need modifying are/were in an "error" state prior the invocation.

A stretch goal would be to accept the same CLI flags as prettier for the loglevel. That would allow more fine grained control. Again, I don't have a strong opinion on what levels apply to what. As long as I can quiet the output to only print modified files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant