-
Notifications
You must be signed in to change notification settings - Fork 509
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
Set log level as (CLI) parameter #1632
Labels
Milestone
Comments
Also allow for option |
paul-dingemans
added a commit
to paul-dingemans/ktlint
that referenced
this issue
Sep 23, 2022
…with `--log-level=<level>` or the short version `-l=<level>. Closes pinterest#1632 * Allow disabling logging in CLI by setting `--log-level=none` or `-l=none`. Closes pinterest#1652
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add new CLI flag
--log-level=<level>
and remove flags--debug
,--trace
and--verbose
. The new flag can be sued to set the log level to any of the used log levels. In addition to current situation, this makes it also possible to suppress warning and/or errors on. As of that users can more easily control the amount of logging produced by ktlint.Possible downside is that
--log-level=debug
is more cumbersome to specify than--debug
or-v
.Originally posted by @paul-dingemans in #1624 (comment)
The text was updated successfully, but these errors were encountered: