Skip to content

Commit cbae0fb

Browse files
committed
docs: update description about where/when debug log is written
PR-URL: #4114 Credit: @lukekarrys Close: #4114 Reviewed-by: @wraithgar
1 parent 31b098e commit cbae0fb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/content/using-npm/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,8 @@ Ideal if all users are on npm version 7 and higher.
10141014
* Type: "silent", "error", "warn", "notice", "http", "timing", "info",
10151015
"verbose", or "silly"
10161016

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

10201020
Any logs of a higher level than the setting are shown. The default is
10211021
"notice".

lib/utils/config/definitions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,8 @@ define('loglevel', {
12141214
'silly',
12151215
],
12161216
description: `
1217-
What level of logs to report. On failure, *all* logs are written to
1218-
\`npm-debug.log\` in the current working directory.
1217+
What level of logs to report. All logs are written to a debug log,
1218+
with the path to that file printed if the execution of a command fails.
12191219
12201220
Any logs of a higher level than the setting are shown. The default is
12211221
"notice".

tap-snapshots/test/lib/utils/config/definitions.js.test.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,8 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for logle
10871087
* Type: "silent", "error", "warn", "notice", "http", "timing", "info",
10881088
"verbose", or "silly"
10891089
1090-
What level of logs to report. On failure, *all* logs are written to
1091-
\`npm-debug.log\` in the current working directory.
1090+
What level of logs to report. All logs are written to a debug log, with the
1091+
path to that file printed if the execution of a command fails.
10921092
10931093
Any logs of a higher level than the setting are shown. The default is
10941094
"notice".

tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,8 @@ Ideal if all users are on npm version 7 and higher.
888888
* Type: "silent", "error", "warn", "notice", "http", "timing", "info",
889889
"verbose", or "silly"
890890
891-
What level of logs to report. On failure, *all* logs are written to
892-
\`npm-debug.log\` in the current working directory.
891+
What level of logs to report. All logs are written to a debug log, with the
892+
path to that file printed if the execution of a command fails.
893893
894894
Any logs of a higher level than the setting are shown. The default is
895895
"notice".

0 commit comments

Comments
 (0)