# How to do Loging in Rails

**URL:** <https://www.ruby-forum.com/t/how-to-do-loging-in-rails/184335>\
**Category:** Rails\
**Created:** [March 1, 2010, 5:15am UTC](https://www.ruby-forum.com/t/how-to-do-loging-in-rails/184335 "2010-03-01T05:15:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [March 1, 2010, 5:15am UTC](https://www.ruby-forum.com/t/how-to-do-loging-in-rails/184335/1 "2010-03-01T05:15:33Z")

</div>

Hi  
My question may be too silly. But I Don’t know how to work with  
logging functionality in Ruby and Rails. The thing is Ruby/Rails is my  
first technology as a professional. I read some basics like logger.info,  
logger.debug etc But I did not understand how to apply those to my  
application covering all the environments like development,production,  
etc. Where to start? And how to activate it for various environments?Has  
this any connection with exception notification etc. These are a bundle  
of questions coming to my mind. Please guide me. Also please provide me  
with some links

Thanks in advance  
Tom

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [March 1, 2010, 10:24am UTC](https://www.ruby-forum.com/t/how-to-do-loging-in-rails/184335/2 "2010-03-01T10:24:26Z")

</div>

On 1 March 2010 04:15, Tom M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi  
> My question may be too silly. But I Don’t know how to work with  
> logging functionality in Ruby and Rails. The thing is Ruby/Rails is my  
> first technology as a professional. I read some basics like logger.info,  
> logger.debug etc But I did not understand how to apply those to my  
> application covering all the environments like development,production,  
> etc. Where to start? And how to activate it for various environments?Has  
> this any connection with exception notification etc. These are a bundle  
> of questions coming to my mind. Please guide me. Also please provide me  
> with some links

The RoR guide on Debugging at [http://guides.rubyonrails.org/](http://guides.rubyonrails.org/) has  
useful info on using the logger.

Colin
