Quiet the Logger in 1.1

I’m using Rails 1.1 and I’m trying to quiet the logger. I searched the
mailing list and placed the following inside my environment.rb:

RAILS_DEFAULT_LOGGER.level = (RAILS_ENV == ‘production’ ? Logger::INFO :

But I keep getting:

const_missing': uninitialized constant RAILS_DEFAULT_LOGGER (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:inconst_missing’

Do I need to “require” a file? Any ideas on how to quiet the logger in
Rails 1.1?

Thanks in advance.


What’s an Intel chip doing in a Mac? A whole lor more that it’s ever
done in a PC.

My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
Snippets - http://snippets.scottwalter.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs