3 ms·
Log4r[1] is nice, but last I checked it isn't as well maintained or feature rich as the Logging[2] gem. [1] https://rubygems.org/gems/log4r https://rubygems.or
by techscruggs 13y ago
Log4r[1] is nice, but last I checked it isn't as well maintained or feature rich as the Logging[2] gem.
[1] https://rubygems.org/gems/log4r https://rubygems.org/gems/log4r [2] https://rubygems.org/gems/logging https://rubygems.org/gems/logging
- gingerlime 13y agoYes, I think the Logging gem gives you a lot out of the box (like email notifications), and feels really easy to work with. It also plays nicely with gems like lograge[1] - which condenses your log lines very nicely whilst still keeping most important info. [1]https://github.com/roidrage/lograge https://github.com/roidrage/lograge
- mmlac 13y agoLograge's functionality imho can be replaced by Log4r's formatters and the notification code in the initializer.
- gingerlime 13y agoLog4r does feel very robust and customizable, but also feels much more verbose and heavy. You get pretty much all of that and with less verbose configuration with the Logging gem + lograge, yet they are still relatively easy to tweak. The email notification of the Logging/Logging-rails gem in particular is really great, and you can even define message thresholds (not more than one email per minute, only if X number of errors etc)
- mmlac 13y agoI 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 another blogpost as an introduction to Logger as well as the differences and advantages of Logger. Thanks for making me aware of this gem!