We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a460d98 commit 1a1ce26Copy full SHA for 1a1ce26
src/util/logging.js
@@ -151,6 +151,22 @@ exports.Logger = Class(Writable, function () {
151
this.toString = function() {
152
return this._buffer.join("\n");
153
};
154
+
155
+ // deprecated
156
+ // backwards-compatible logging API
157
+ Object.defineProperty(this, 'out', {
158
+ 'get': function () {
159
+ return this.log.bind(this);
160
+ }
161
+ });
162
163
164
165
+ Object.defineProperty(this, 'err', {
166
167
+ return this.error.bind(this);
168
169
170
});
171
172
exports.getPrefix = function (tag) {
0 commit comments