# Logging on Rails 2.2 different than 2.0.2?

**URL:** <https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388>\
**Category:** Rails\
**Created:** [November 16, 2008, 4:37am UTC](https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388 "2008-11-16T04:37:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [November 16, 2008, 4:37am UTC](https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388/1 "2008-11-16T04:37:56Z")

</div>

Hi,

On my beginng app under 2.0.2 (ovre WinXP/SP3), all I wrote was  
logger.info “xxxx”  
and xxxx was displayed in the Command Window running Mongrel.

Now I’ve upgraded to 2.2.0 and log.info “xxxx” seems to do nothing.  
Did something change, or do you think I did some ‘reguire’ or set  
logger=something,or.other which I’ve forgotten about.

I Googled but found nothing worthwhile.

Any ideas?

Thanks in Advance,  
Richard

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [November 16, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388/2 "2008-11-16T17:01:15Z")

</div>

Hi,

I finally realize the “logger.info” statements in my Rails 2.2.0 app  
are going to developer.log.

Is there something simple I can add to my current app or Rails version  
to get logger output to go to the Command Window running the Mongrel  
web server, as the version I developed under 2.0.2 did?

I recently saw some blogs suggesting the 2.2.0 might not yet be the  
“released version”, though I doubt that because IMHO the gem  
installer wouldn’t have included it among the available Rails  
versions. Maybe the articles I saw were outdated. True?

I found a great blog about switching between Rails versions and  
freezing them so old app versions can be tested with their original  
Rails environments:  
[http://blog.fiveruns.com/2008/8/6/quickly-switching-between-different-rails-releases-with-git](http://blog.fiveruns.com/2008/8/6/quickly-switching-between-different-rails-releases-with-git).

TIA,  
Richard

On Nov 15, 10:37 pm, RichardOnRails

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [November 16, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388/3 "2008-11-16T17:49:55Z")

</div>

On Nov 16, 4:00 pm, RichardOnRails  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I recently saw some blogs suggesting the 2.2.0 might not yet be the  
> “released version”, though I doubt that because IMHO the gem  
> installer wouldn’t have included it among the available Rails  
> versions. Maybe the articles I saw were outdated. True?

2.2.0 is 2.2RC1 (and 2.2.1 is the second release candidate) so those  
blogs are accurate in that neither of those versions are the final  
version of 2.2. You would only get those versions if you had added  
[gems.rubyonrails.org](http://gems.rubyonrails.org) to your list of gem sources.

Fred

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [November 16, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388/4 "2008-11-16T18:10:27Z")

</div>

Thanks, Fred, for that clarification.

And you are right about [gems.rubyonrails.org](http://gems.rubyonrails.org). “gem sources” reports  
the I also have [http://gems.rubyforge.org](http://gems.rubyforge.org).

What do you recommend a senior app developer but a mid-level Rubyist  
and junior Railist should have?

Thanks, again,  
Richard

On Nov 16, 11:46 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [November 16, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388/5 "2008-11-16T20:04:48Z")

</div>

Depends, why not have both 2.1.2 and 2.2.1 in there so that you can  
work on what is going to be coming with 2.2.x? The final version  
should be coming pretty soon, and the more eyes looking at the current  
release candidate the better.

On Nov 16, 11:10 am, RichardOnRails

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [November 20, 2008, 4:09am UTC](https://www.ruby-forum.com/t/logging-on-rails-2-2-different-than-2-0-2/153388/6 "2008-11-20T04:09:12Z")

</div>

> why not have both 2.1.2 and 2.2.1 in there

I’m doing that. I going to try to switch between Rails Gem versions  
for a given app just by changing RAILS\_GEM\_VERSION = ‘x.x.x’ in  
environment.rb and see if that does the job.

Best wishes,  
Richard
