Make logger work in Rails 4