Use logger environment settings in Rails console.

Fix for https://github.com/rails/rails/issues/15470