Closed octatone closed 10 years ago
@adamrenklint
why not create a new module for logging ?
Because I am not smart enough to figure out how to deal with the multiple wb.core dependencies :D Feel free to teach me.
Ideally we would use this everywhere, it does make sense to make a standalone module.
we can do this on monday .. i did some work on coloured prefixes that worked on node as well as browser, we can visit that again.
Cool, yeah, lets sit together and hack out a real module on monday and publish it.
yay :smiley:
Is KartoffelScript a real thing @netroy or another troll module?
Any interest in log levels ala https://github.com/jonnyreeves/js-logger/blob/master/src/logger.js ?
ooops :/
Log levels would be good to add for node support.
Maybe something like here? http://smalljs.org/logging/debug/
DEBUG=* node index.js
DEBUG=grep node index.js
Yeah we can add support for env variables, for setting the match pattern
LOG=io
Debug doesn't make sense to me as although you might use this for literal debugging, it's just a wrapper for all console methods, including timing, info logging etc. It's more all purpose.
Yeah, a LOG
env variable makes more sense
Ze code ist mein!!!
Moved to here: https://github.com/octatone/MagiConsole
will write more tests, but this already works
Namespaced instances are cached a la the WL WBCollection.