Monday, March 20, 2017

Rails - logger enhancements

https://github.com/jrochkind/formatted_rails_logger

FormattedRailsLogger
Monkey-patches Rails BufferedLogger (the standard Rails logger) to accept a formatter just like ruby Logger does. Provides a formatter that includes timestamp and severity in logs, while taking account of Rails habit of making space in the logfile by adding newlines to the beginning of log message.

No comments:

Post a Comment

Followers

Blog Archive