-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
var Log = exports = module.exports = function Log(level, stream){
if ('string' == typeof level) level = exports[level.toUpperCase()];
this.level = isFinite(level) ? level : this.DEBUG; // here
this.stream = stream || process.stdout;
if (this.stream.readable) this.read();
};the comments of // here ,it's exports.DEBUG rather than this.DEBUG. Because the value of this.DEBUG is undefined, so nothing would ouput
exports[levelStr] <= this.level // false foreverMetadata
Metadata
Assignees
Labels
No labels