Bring over the new logger initialization logic form application.rb.