Skip to content

Add verbosity levels for warnings and errors#3371

Open
tesujimath wants to merge 1 commit into
fsprojects:mainfrom
tesujimath:verbosity
Open

Add verbosity levels for warnings and errors#3371
tesujimath wants to merge 1 commit into
fsprojects:mainfrom
tesujimath:verbosity

Conversation

@tesujimath

Copy link
Copy Markdown

These behave the same as normal in terms of output formatting, but have a minimum log level of warning and error respectively.

This is useful when formatting to stdout with e.g. --out /dev/fd/1 to avoid the "<file> was formatted."
message appearing in the formatted output.

(Being able to format to stdout seems to be essential for e.g. hooking Fantomas into Emacs Aphelia.)

Relates to #2665

These behave the same as normal in terms of output formatting,
but have a minimum log level of warning and error respectively.

This is useful when formatting to stdout with e.g. --out /dev/fd/1
to avoid the "<file> was formatted." message appearing
in the output.
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

Successfully merging this pull request may close these issues.

1 participant