Skip to content

Commit

Permalink
docs: update description about where/when debug log is written
Browse files Browse the repository at this point in the history
PR-URL: #4114
Credit: @lukekarrys
Close: #4114
Reviewed-by: @wraithgar
  • Loading branch information
lukekarrys committed Dec 2, 2021
1 parent 31b098e commit cbae0fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,8 @@ Ideal if all users are on npm version 7 and higher.
* Type: "silent", "error", "warn", "notice", "http", "timing", "info",
"verbose", or "silly"

What level of logs to report. On failure, *all* logs are written to
`npm-debug.log` in the current working directory.
What level of logs to report. All logs are written to a debug log, with the
path to that file printed if the execution of a command fails.

Any logs of a higher level than the setting are shown. The default is
"notice".
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/config/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1214,8 +1214,8 @@ define('loglevel', {
'silly',
],
description: `
What level of logs to report. On failure, *all* logs are written to
\`npm-debug.log\` in the current working directory.
What level of logs to report. All logs are written to a debug log,
with the path to that file printed if the execution of a command fails.
Any logs of a higher level than the setting are shown. The default is
"notice".
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/utils/config/definitions.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,8 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for logle
* Type: "silent", "error", "warn", "notice", "http", "timing", "info",
"verbose", or "silly"
What level of logs to report. On failure, *all* logs are written to
\`npm-debug.log\` in the current working directory.
What level of logs to report. All logs are written to a debug log, with the
path to that file printed if the execution of a command fails.
Any logs of a higher level than the setting are shown. The default is
"notice".
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,8 @@ Ideal if all users are on npm version 7 and higher.
* Type: "silent", "error", "warn", "notice", "http", "timing", "info",
"verbose", or "silly"
What level of logs to report. On failure, *all* logs are written to
\`npm-debug.log\` in the current working directory.
What level of logs to report. All logs are written to a debug log, with the
path to that file printed if the execution of a command fails.
Any logs of a higher level than the setting are shown. The default is
"notice".
Expand Down

0 comments on commit cbae0fb

Please sign in to comment.