We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
// here
exports.DEBUG
this.DEBUG
undefined
exports[levelStr] <= this.level // false forever
The text was updated successfully, but these errors were encountered:
No branches or pull requests
the comments of
// here
,it'sexports.DEBUG
rather thanthis.DEBUG
. Because the value ofthis.DEBUG
isundefined
, so nothing would ouputThe text was updated successfully, but these errors were encountered: