Wednesday, April 18, 2012

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" ;)

1 Comments:

At 9:09 AM, Blogger pyrat said...

Nice man! A lightweight and simple improvement no need for more gems!

Might break / deprecated with rails 4 though?

 

Post a Comment

<< Home