And in coffee, you can even use 'fn?()' for that. :P
Am 29.02.2012 08:10 schrieb "Bruno Jouhier" <[email protected]>:
I use something like:
// top of file:
var trace = require('appConfig').getTrace(module); // returns logging
function or null
// anywhere in the file
trace && trace(some_message);
getTrace can return console.log but may also return a function that
logs to file.
On Feb 29, 12:46 am, Diogo Resende <[email protected]> wrote:
> On Wed, 29 Feb 2012 00:33:32...
--
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
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en