Uh, we seem to be agreeing here, @Alexey. In general, I want *everything* going to stdout, and a good logging system should capture it all, work out the timestamps, and interleave the output viewable from a single console.
I will agree, however, that not every cloud environment has that kind of logging system, and so you may be stuck doing this on your own. The other option in an environment in which you do not control the environment, is to have a custom module (like log4j or winston), and have them all go to a single centralized system (Loggly, whatever) that does that for you. But I consider it a critical service of a cloud environment to gather these all for you. On Wednesday, March 28, 2012 9:35:17 PM UTC+2, Alexey Petrushin wrote: > > > Interesting article. I have always preferred logging to a stdout stream, > and > having some system to capture it. However, in a cloud environment > like > > nodejitsu or heroku, you need some control over it. > Sorry, but do You really read the article? :) The point of it was that > tools like log4j atually make logging worse in Cloud Environment. That's > was the lesson Adam learned at Heroku and shared with us in this article. > > In "Cloud" node - is just a smal part of the whole system, You also need > DB logs, and logs from other systems, and if every of such system will use > some custom and special log4j - there will be a mess. > In this scenario it's better to use stdout/stderr and have logs managed by > Cloud Tools - independent from particular application. > On Wednesday, March 28, 2012 9:35:17 PM UTC+2, Alexey Petrushin wrote: > > > Interesting article. I have always preferred logging to a stdout stream, > and > having some system to capture it. However, in a cloud environment > like > > nodejitsu or heroku, you need some control over it. > Sorry, but do You really read the article? :) The point of it was that > tools like log4j atually make logging worse in Cloud Environment. That's > was the lesson Adam learned at Heroku and shared with us in this article. > > In "Cloud" node - is just a smal part of the whole system, You also need > DB logs, and logs from other systems, and if every of such system will use > some custom and special log4j - there will be a mess. > In this scenario it's better to use stdout/stderr and have logs managed by > Cloud Tools - independent from particular application. > -- 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
