Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mmlac
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
What I learned from 500k LOC built with AI
(mmlac.com)
2 points
by
mmlac
8mo ago
|
0 comments
2.
▲
An Introduction To Scala Parser Combinators (Part 1 of 3)
(henkelmann.eu)
1 points
by
mmlac
12y ago
|
0 comments
3.
▲
How to Pre-Process Logs with Logstash
(blog.mmlac.com)
3 points
by
mmlac
12y ago
|
0 comments
4.
▲
Log Transport and Distribution with Apache Kafka 0.8
(blog.mmlac.com)
3 points
by
mmlac
13y ago
|
0 comments
5.
▲
by
mmlac
13y ago
And then there is the option to push all this code into a gem . One line of code in the Gemfile and you are set. :)
6.
▲
by
mmlac
13y ago
This is a great point about the time, thank you for the feedback! About storing logs in the fs: I was thinking about i.e. the database but then how do I solve cases like "this one server acts up, can I get the verbose logs from there b
7.
▲
by
mmlac
13y ago
I can totally understand your point. This is an excessive example with lots of customization. You can get by with a lot less code if you just want to get a sane default-format or a lot more if you want to really fine-tune your logs. The bea
8.
▲
by
mmlac
13y ago
All the mentioned solutions are great! I personally think it does not matter if we use key-value output or "sentences", they have to be parsed anyway. I prefer writing Function: Foo instead of fn=Foo, just because I think it'
9.
▲
by
mmlac
13y ago
Lograge's functionality imho can be replaced by Log4r's formatters and the notification code in the initializer.
10.
▲
by
mmlac
13y ago
I would argue that the standard rails logs are perfectly fine for local development and debugging. NewRelic even ships a local version that allows to track down performance issues. This works great for one or two requests triggered by the d
11.
▲
by
mmlac
13y ago
Scout, NewRelic and HoneyBadger are great tools to get started with. Their limitations are that they do what they do, how they think it should be done. If you need different metrics, another way to split up the data or correlate your mongo
12.
▲
by
mmlac
13y ago
I must say that I did not know of the Logging gem. It looks really promising and has some nice features like coloring for i.e. stdout and rspec support. Sadly the docs are even worse than the ones for Log4R. I will take a look into writing
13.
▲
Log4r for Ruby on Rails: Scalable and Robust Logging for Web Applications
(blog.mmlac.com)
42 points
by
mmlac
13y ago
|
21 comments