3 ms·
Yes, 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
by gingerlime 13y ago
Yes, 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)