diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index d3b8844d5acdc2..a39728b6e5b9a8 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1313,6 +1313,9 @@ The [`util.isUndefined()`][] API is deprecated. -Type: Documentation-only +Type: Runtime The [`util.log()`][] API is deprecated. diff --git a/lib/util.js b/lib/util.js index fbcacfa8228655..0e8a79d2b35eae 100644 --- a/lib/util.js +++ b/lib/util.js @@ -446,7 +446,10 @@ module.exports = { 'Please use `arg === null || ' + '(typeof arg !== "object" && typeof arg !== "function")` instead.', 'DEP0054'), - log: deprecate(log, 'The `util.log API is deprecated.', 'DEP0059'), + log: deprecate(log, + 'The `util.log API is deprecated. ' + + 'Please use console.log() with a custom formatter or a third-party logger instead.', + 'DEP0059'), promisify, stripVTControlCharacters, toUSVString,