For an application that I have in production - I am just using stdout for general purpose logging and stderr for logging errors. I make upstart redirect stdout and stderr to different files, and use logrotate to rotate these files. Is this fine? What advantage does using a separate logging module give (apart from logging levels) ?
On Monday, March 26, 2012 3:38:33 PM UTC+5:30, Alexey Petrushin 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
