Winston allows for this approach if you use the "Console" transport
https://github.com/flatiron/winston/blob/master/lib/winston/transports/console.js On Mon, Mar 26, 2012 at 3:08 AM, Alexey Petrushin < [email protected]> wrote: > Maybe it's better to just use stdout/stderr and don't mix logging > (deployment-level task) into application. Very interesting article about > this approach from Heroku > http://adam.heroku.com/past/2011/4/1/logs_are_streams_not_files > > On Monday, March 26, 2012 2:34:42 AM UTC+4, deitch wrote: >> >> What do people here recommend for logging? In the old Java days, I would >> use Apache commons-logging or log4j, sprinkle tons of log('debug',msg) >> statements all over the place, and raise/lower the debug level using an >> environment var. >> >> Of course, I much prefer turning it on to debug mode and connecting >> node-inspector and the WebKit interface, but that is not possible in a >> cloud-based prod environment. >> >> Thanks. >> > -- > 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
