# Problem with RAILS\_DEFAULT\_LOGGER in 1.2.2

**URL:** <https://www.ruby-forum.com/t/problem-with-rails-default-logger-in-1-2-2/84982>\
**Category:** Rails\
**Created:** [February 8, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/problem-with-rails-default-logger-in-1-2-2/84982 "2007-02-08T23:50:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![srogers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@srogers](https://www.ruby-forum.com/u/srogers)\
**Post date:** [February 8, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/problem-with-rails-default-logger-in-1-2-2/84982/1 "2007-02-08T23:50:24Z")

</div>

I’m getting the following error in 1.2.2:

/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/  
active\_support/dependencies.rb:263:in  
`load\_missing\_constant’:NameError: uninitialized constant  
ActiveSupport::Deprecation::RAILS\_DEFAULT\_LOGGER

It shows up in script/console, the mongrel log, etc. However, if I  
set RAILS\_GEM\_VERSION = ‘1.2.1’ then everything is fine. I tried setting

RAILS\_DEFAULT\_LOGGER = Logger.new("#{RAILS\_ROOT}/log/#  
{RAILS\_ENV}.log", 20, 10.megabyte)

in development.rb, but no joy there either. Any thoughts. From  
looking at the code, it seems like this is something initialize.rb  
should be doing . . ?

I haven’t seen any other posts/blogs about the problem, so wondering  
if it’s just me.

actionmailer (1.3.2, 1.3.1, 1.3.0, 1.2.5, 1.2.3)  
actionpack (1.13.2, 1.13.1, 1.13.0, 1.12.5, 1.12.3)  
actionwebservice (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)  
activerecord (1.15.2, 1.15.1, 1.15.0, 1.14.4, 1.14.3)  
activesupport (1.4.1, 1.4.0, 1.3.1)  
rails (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)

ruby 1.8.5 (2006-08-25) [powerpc-darwin8.8.0]

Thanks,  
SR

---

<div class="post-metadata">

**Author:** ![srogers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@srogers](https://www.ruby-forum.com/u/srogers)\
**Post date:** [February 9, 2007, 1:22am UTC](https://www.ruby-forum.com/t/problem-with-rails-default-logger-in-1-2-2/84982/2 "2007-02-09T01:22:35Z")

</div>

Hi, you’ll have to set your RAILS\_GEM\_VERSION to the one that you’re  
developing against because you have several versions of rails  
installed

actionmailer (1.3.2, 1.3.1, 1.3.0, 1.2.5, 1.2.3)  
actionpack (1.13.2, 1.13.1, 1.13.0, 1.12.5, 1.12.3)  
actionwebservice (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)  
activerecord (1.15.2, 1.15.1, 1.15.0, 1.14.4, 1.14.3)  
activesupport (1.4.1, 1.4.0, 1.3.1)  
rails (1.2.2, 1.2.1, 1.2.0, 1.1.6, 1.1.4)

Furthermore, if you developing against rails 1.2.2 then you should set

RAILS\_GEM\_VERSION = ‘1.2.2’

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![srogers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@srogers](https://www.ruby-forum.com/u/srogers)\
**Post date:** [February 9, 2007, 2:39am UTC](https://www.ruby-forum.com/t/problem-with-rails-default-logger-in-1-2-2/84982/3 "2007-02-09T02:39:40Z")

</div>

On Feb 8, 2007, at 5:48 PM, Steven R. wrote:

> I’m getting the following error in 1.2.2:
> 
> /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/  
> active\_support/dependencies.rb:263:in  
> `load\_missing\_constant’:NameError: uninitialized constant  
> ActiveSupport::Deprecation::RAILS\_DEFAULT\_LOGGER

I saw this when running ‘rake test’. I was also getting a  
deprecation warning about ActionMailer::Base.server\_settings in the  
environment config file. After updating that (Base.smtp\_settings)  
the RAILS\_DEFAULT\_LOGGER error went away.

-faisal

---

<div class="post-metadata">

**Author:** ![srogers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@srogers](https://www.ruby-forum.com/u/srogers)\
**Post date:** [February 9, 2007, 6:20am UTC](https://www.ruby-forum.com/t/problem-with-rails-default-logger-in-1-2-2/84982/4 "2007-02-09T06:20:54Z")

</div>

On Feb 8, 7:38 pm, Faisal N Jawdat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> . . . After updating that (Base.smtp\_settings) the RAILS\_DEFAULT\_LOGGER error went away.

Thanks - that fixed it!

SR
