Skip to content

Commit a4dcfb1

Browse files
committed
Better documnetation of loglevel configs
1 parent 266f1c9 commit a4dcfb1

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

doc/config.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,23 @@ Configurations defined on the command line are not saved to the .npmrc file.
7676

7777
Default: "info"
7878

79-
The log level to show. Levels are: verbose, info, warn, error, win, silent.
80-
Each of these maps to a numeric value, above which all logs must pass to be
81-
seen. "win" only shows the "ok" or "not ok" ending message. The other
82-
options are self-explanatory.
79+
The log level to show.
80+
81+
Each level maps to a numeric value, above which all logs must pass to be
82+
seen. So, setting it to "warn" shows "win", "error" and "warn" messages.
83+
84+
The log levels:
85+
86+
* silent: Show no output. Nothing. If there is output on stderr, it's
87+
because something is broken.
88+
* win: Show the "npm ok" or "npm not ok", but that's all.
89+
* error: Errors, usually with a stack trace.
90+
* warn: Things that you should probably be aware of.
91+
* info: Helpful info.
92+
* silly: Not-helpful info. (Lots of dumping whole objects and such.)
93+
94+
Note that output to stdout is always printed. This setting just modifies
95+
what's logged to stderr.
8396

8497
### auto-activate
8598

0 commit comments

Comments
 (0)