FAQ
Just create an EventEmitter instance and emit your log events to there. People who then want to have logging enabled can hook up their own logging library. Or just listen to the emitted log messages using console.log

On Monday 6 August 2012 at 22:08, kuhnza 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 (http://hubify.com) after trying some of the other options out there such as Q-Oper8 (https://github.com/robtweed/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 [email protected] (mailto:[email protected])
To unsubscribe from this group, send email to
nodejs+[email protected] (mailto:nodejs+[email protected])
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 [email protected]
To unsubscribe from this group, send email to
nodejs+[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 22 | next ›
Discussion Overview
groupnodejs @
categoriesnodejs
postedAug 6, '12 at 7:42p
activeAug 7, '12 at 6:40p
posts22
users5
websitenodejs.org
irc#node.js

People

Translate

site design / logo © 2023 Grokbase