Skip to content

Feature Request: loglevel output control #115

@jasonkarns

Description

@jasonkarns

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions