Live data from Hacker News

Heroku Gets Sweet Logging

blog.heroku.com

1–10 of 25 posts

Re: Heroku Gets Sweet Logging

#2
Until the Advanced functionality is rolled out publicly, does anyone have suggestions for logging all requests to something like S3? I was going to write my own this afternoon since I couldn't find anything.

I see the market currently providing two options, neither of which encompass my use case.

1) Exception Logging via existing Heroku addons like Exceptional

2) Tracking via javascript, e.g. Google Analytics

The problem I'm experiencing is that I have successful ajax calls to a Sinatra app that I'd like to log. Running 'heroku logs' will give me the last couple hundred but I'm generating many thousands. The new new Heroku logging functionality will expand that tail to showing me a few thousand queries across my dynos but as I understand it, it won't write out to S3 (nor a file since Heroku is write-only).

I planned on writing a custom logger that will output to S3. If anyone has suggestions in lieu of rolling my own, please advise. Otherwise I can post the code I create on github for others in my situation.

Re: Heroku Gets Sweet Logging

#3
post #2

Until the Advanced functionality is rolled out publicly, does anyone have suggestions for logging all requests to something like S3? I was going to write my own this afternoon since I couldn't find anything. I see the market currently providing two options, neither of which encompass my use case. 1) Exception Logging via existing Heroku addons like Exceptional 2) Tracking via javascript, e.g. Google Analytics The pro…

You can use MongoDB Logger which works pretty good https://github.com/peburrows/mongo_db_logger

Although I'm not sure if its still being maintained.

Re: Heroku Gets Sweet Logging

#7

http://en.wikipedia.org/wiki/Inner-platform_effect

I understand it seems witty article to link to, but it's not giving the Heroku guys much credit. It seems that they ran into some fundamentally difficult problems while trying to implement a pleasant logging system - I'm inclined to give them the benefit of the doubt for a number of reasons, but I know that anyone can fall into NIH trap.

What, then, would you propose as a solution, given the nature of Heroku's architecture and customer base?

Re: Heroku Gets Sweet Logging

#8
post #7

http://en.wikipedia.org/wiki/Inner-platform_effect

I understand it seems witty article to link to, but it's not giving the Heroku guys much credit. It seems that they ran into some fundamentally difficult problems while trying to implement a pleasant logging system - I'm inclined to give them the benefit of the doubt for a number of reasons, but I know that anyone can fall into NIH trap. What, then, would you propose as a solution, given the nature of Heroku's archit…

Unix

Re: Heroku Gets Sweet Logging

#9

http://en.wikipedia.org/wiki/Inner-platform_effect

Doesn't the second paragraph under examples more or less describe the motivation behind NoSQL?

In the database world, developers are sometimes tempted to bypass the RDBMS, for example by storing everything in one big table with two columns labelled key and value

If so, maybe this is not always an anti-pattern.

Re: Heroku Gets Sweet Logging

#10
post #3
post #2

Until the Advanced functionality is rolled out publicly, does anyone have suggestions for logging all requests to something like S3? I was going to write my own this afternoon since I couldn't find anything. I see the market currently providing two options, neither of which encompass my use case. 1) Exception Logging via existing Heroku addons like Exceptional 2) Tracking via javascript, e.g. Google Analytics The pro…

You can use MongoDB Logger which works pretty good https://github.com/peburrows/mongo_db_logger Although I'm not sure if its still being maintained.

central_logger is the new mongo_db_logger: https://github.com/customink/central_logger

We use it in production on heroku and it works great.

Post reply on HN