mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
util: runtime deprecate util.log
fix pr url PR-URL: https://github.com/nodejs/node/pull/50488 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
6cf20d5e43
commit
e96cd25007
2 changed files with 8 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue