Add timestamp to Rails BufferedLogger output
Little monkey-patch to automatically add a timestamp next to each BufferedLogger log entry. Throw it in your Rails "initializers" directory as "make_buffered_logger_useful.rb" ;)
Blog of hacker, inventor, and serial entrepreneur Noel Geren. Software/hardware, we don't discriminate. How-to's and how-not's.
1 Comments:
Nice man! A lightweight and simple improvement no need for more gems!
Might break / deprecated with rails 4 though?
Post a Comment
<< Home