Make all CLI logging go through a logger (#3515)

* Make all CLI logging go through a logger

* Add --loglevel docs

* Change default loglevel to log

* Update snapshots

* Switch to YAML eslint files
This commit is contained in:
Lucas Azzola authored and GitHub committed 2017-12-18 23:22:07 +11:00
1 parent d1c97b3622
commit ed80d6c5bd
12 files changed
+89 -40

No files matched your search

+10
View File
@@ -105,3 +105,13 @@ Prettier CLI will ignore files located in `node_modules` directory. To opt-out f
## `--write`
This rewrites all processed files in place. This is comparable to the `eslint --fix` workflow.
## `--loglevel`
Change the level of logging for the CLI. Valid options are:
* `error`
* `warn`
* `log` (default)
* `debug`
* `silent`