From d5ce698485ee554dbd870546767c314d8ff8a07a Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Tue, 12 Apr 2016 14:01:31 +0800 Subject: [PATCH] doc: doc-only deprecation for util.log() There are more powerful loggers in user land like `debug`, soft deprecate it. --- doc/api/util.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/api/util.markdown b/doc/api/util.markdown index c059be8c0dd027..2e24ae5ecb0ed8 100644 --- a/doc/api/util.markdown +++ b/doc/api/util.markdown @@ -49,7 +49,7 @@ where `3245` is the process id. If it is not run with that environment variable set, then it will not print anything. You may separate multiple `NODE_DEBUG` environment variables with a -comma. For example, `NODE_DEBUG=fs,net,tls`. +comma. For example, `NODE_DEBUG=fs,net,tls`. ## util.deprecate(function, string) @@ -551,6 +551,8 @@ util.isUndefined(null) ## util.log(string) + Stability: 0 - Deprecated: Use a third party userland module instead. + Output with timestamp on `stdout`. require('util').log('Timestamped message.');