notonthehighstreet/grizzled-rails-logger — pull request #1 by seddy (2012-11-22 11:10:13+00:00)
Title: Add the ability to pad terms with whitespace, similar to printf

A hacky, but allows you to use %5S or %-5S similar to printf/sprintr to right/left pad the various columns; useful specifically for severity, where INFO has four characters and DEBUG has 5 (meaning the actual logs all get misaligned).

Would be better to maybe split out each element into a class, but the whole file's a bit procedural so couldn't be bothered to make sweeping changes which would've been needed for that.

Happy to do that if anyone thinks it's worth the time?