On Tue, Aug 7, 2012 at 9:54 AM, Matt <hel...@gmail.com> wrote: > I prefer if you at least have a level of indirection away from console.log, > so that I can override it (or pass in a "log" function to a constructor of > some sort) without having to stomp on console.log.
The thing is, what is the purpose of console.log? It is a "log" function after all. If I want to write data to stdout, I use process.stdout.write(). If I want to log something to the console, I use console.log. In vfs-child where I use stdout as a data channel, I redirect console.log to stderr and all code continues working as expected. > On Mon, Aug 6, 2012 at 4:08 PM, kuhnza <david.s.k...@gmail.com> wrote: >> >> One thing I am keen to know right off the bat is what's the standard >> practice for logging within node libraries? Right now mule simply uses >> console.log but I don't think this is an ideal solution. >> >> What are others doing here? >> >> >> On Monday, August 6, 2012 10:32:52 AM UTC-7, kuhnza wrote: >>> >>> Hey guys & girls, >>> >>> First time open sourcing something for the node community. Hope some find >>> it useful. You can get it here: >>> >>> https://github.com/Hubify/node-mule, or here; >>> npm install mule >>> >>> We created it for use at Hubify after trying some of the other options >>> out there such as Q-Oper8 and found they weren't particularly up to date or >>> suited to our problem. >>> >>> We'd love to hear your suggestions on how it could be made it better. >>> >>> Cheers, >>> Dave >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to nodejs@googlegroups.com >> To unsubscribe from this group, send email to >> nodejs+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en > > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en