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
Hey there, awesome little library you've got here.
I was wondering if you know of a way to easily enable logging from within a given file. For example,
var log = require('debug-logger')('RowView'); log.enable()
If it doesn't exist, would it be difficult to add this as a convenience?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @tnrich,
Thanks.
As per debug-js/debug#169 (comment) you can do debug.enable(/*namespace*/);. So, something like the below should work:
debug.enable(/*namespace*/);
var debugLogger = require('debug-logger'); var log = debugLogger('RowView'); debugLogger.debug.enable('RowView');
Let us know the outcome.
Sorry, something went wrong.
It's debug.enable('RowView*') it seems (with an asterisk).
debug.enable('RowView*')
(also great library btw!)
No branches or pull requests
Hey there, awesome little library you've got here.
I was wondering if you know of a way to easily enable logging from within a given file. For example,
If it doesn't exist, would it be difficult to add this as a convenience?
Thanks!
The text was updated successfully, but these errors were encountered: