Skip to content

Commit e96cd25

Browse files
marco-ippolitonodejs-github-bot
authored andcommitted
util: runtime deprecate util.log
fix pr url PR-URL: #50488 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent 6cf20d5 commit e96cd25

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

doc/api/deprecations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,9 @@ The [`util.isUndefined()`][] API is deprecated.
13131313

13141314
<!-- YAML
13151315
changes:
1316+
- version: REPLACEME
1317+
pr-url: https://github.com/nodejs/node/pull/50488
1318+
description: Runtime deprecation.
13161319
- version: v6.12.0
13171320
pr-url: https://github.com/nodejs/node/pull/10116
13181321
description: A deprecation code has been assigned.
@@ -1321,7 +1324,7 @@ changes:
13211324
description: Documentation-only deprecation.
13221325
-->
13231326

1324-
Type: Documentation-only
1327+
Type: Runtime
13251328

13261329
The [`util.log()`][] API is deprecated.
13271330

lib/util.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,10 @@ module.exports = {
446446
'Please use `arg === null || ' +
447447
'(typeof arg !== "object" && typeof arg !== "function")` instead.',
448448
'DEP0054'),
449-
log: deprecate(log, 'The `util.log API is deprecated.', 'DEP0059'),
449+
log: deprecate(log,
450+
'The `util.log API is deprecated. ' +
451+
'Please use console.log() with a custom formatter or a third-party logger instead.',
452+
'DEP0059'),
450453
promisify,
451454
stripVTControlCharacters,
452455
toUSVString,

0 commit comments

Comments
 (0)