https://wiki.mozilla.org/ServerJS/API/console
I threw in a generalized "print" method and a couple log levels that
are handy for displaying unit tests in my experience. I also threw
some verbiage in there to avoid embrace-and-extend nomenclature
collisions in the future, and to encourage the standardization of
generally useful stuff.
Kris Kowal
This one should be easy. I've drafted a specification for (basically)
the "console" object you already know and love.
I agree regarding the "pass"/"fail" levels.
In general, I'm for having this available for compatibility with
browser, but I don't think it should be the whole logging story. As we
discussed in the other thread, there's a lot of room for improvement,
and console.log is about as basic as it gets.
As such, I would stick with the basic error/warn/log/info/debug
methods available in the browsers, and make a real logger available in
a separate module.
Perhaps console.log etc could simply use the more advanced logger
module.
-Tom
Ok.
> As such, I would stick with the basic error/warn/log/info/debug
> methods available in the browsers, and make a real logger available in
> a separate module.
>
> Perhaps console.log etc could simply use the more advanced logger
> module.
This should be an explicit requirement, I think. The console module
should be a pure-javascript module in the standard library that always
defers to the logging module.
Kris Kowal
https://wiki.mozilla.org/ServerJS/API/console
Kris Kowal