-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
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
Use without monkey-patching core #1
Comments
The trouble is that you then can't capture var console = require( 'groupable-console' );
var doSomethingThatUsesConsoleLog = require( 'some-module' );
console.group();
console.log( 'this will be indented' );
doSomethingThatUsesConsoleLog({ verbose: true }); // is not indented!
console.groupEnd(); I can't think really think of a way around that. Also, when debugging a library with many files, you want to be able to quickly throw a few That said, if you have any ideas to make it work I'm all ears! |
How about offering a method to return a console wrapper object as an optional alternative to |
Colors.js is also a library patching the console to make it more colorful. Anyway, nice work of this module. :) |
In the interest to make userland modules better overall, would it be possible to export the function in a way which does not require overwriting core console methods?
Was linked to this module by nodejs/node#1716, and think a good userland solution might be better than adding this sort of functionality to core. :)
The text was updated successfully, but these errors were encountered: