Scott Watermasysk

Still Learning to Code

Better Rails 3 Logging Output

I added two gems to my Gemfile today which dramatically improved my local development log output.

  1. Itslog - The formatting will prepend all log statements with a colored header and additional information about the statement. The information and structure of the new statements is customizable through configuration.
  2. Silent-Postres - Silences internal diagnostic messages from postgresql connection adapter.

The only gotcha I had after adding these gems is I needed to switch to the dark iTerm2 solarized theme to view the Itslog output (although this can be overridden if I really want to use the light background).

Highly recommended.