On Tuesday, March 20, 2012 4:03:33 PM UTC-7, mscdex wrote:
>
> On Mar 20, 2:14 pm, m1k3l <[email protected]> wrote:
> > is there an async logging from native code in NodeJS? Something similar
> to
> > console.log() or a way to send logging events that could be used in a JS
> > program?
>
> console.log() now blocks in v0.6.x, unless process.stdout refers to a
> pipe: http://nodejs.org/docs/v0.6.11/api/all.html#process.stdout
hum not good enough. I'd prefer having native logging completely async and,
in JS land, to be forwarded to logger such as winston.
So it seems NodeJS doesn't have a native async logging facility, right?
Not a big deal, I can create one quickly. I'm thinking something event
based to be received like on("logging", callback). Not sure if I'll put it
in node yet but somehow I think it would be a great tool for
debugging/prototyping.