Custom logger formatting for Rails 3 & 4