I'd recommend using https://github.com/flatiron/flatiron for this.
It has some really nice sugar syntax for taking https://github.com/flatiron/nconf configurations and loading them into https://github.com/flatiron/winston based on environment. On Thu, Mar 29, 2012 at 2:12 AM, framlin <[email protected]> wrote: > Servus, > > I use winston and have several log-levels. > winston.log('info', 'foo'); > winston.log('warn', 'bar'); > winston.log('error', 'foobar'); > > How can I supress infos within a 'production'-environment, without > changing the code before deploying. > How can I switch off infos while "normal" development and switch it on > only while debugging, without changing sources, too? > > Any hints? > > Wolfgang > > -- > 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 > -- -- Marak Squires Co-founder and Chief Evangelist Nodejitsu, Inc. [email protected] -- 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
