# Where do 'logger.debug' statements go in a production enviro

**URL:** <https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826>\
**Category:** Rails\
**Created:** [May 22, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826 "2007-05-22T23:54:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Post date:** [May 22, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826/1 "2007-05-22T23:54:37Z")

</div>

Specifically within the dreamhost environment (fastcgi)? (that’s the  
only place I’ve attempted deploying out to).

I’ve placed a few logger.debug statements in my application but don’t  
see them popping up anywhere - production.log, error.log … and I  
have no idea where it might be going out to?

Or should I use something like logger.error?

thanks for the help!

- J

---

<div class="post-metadata">

**Author:** ![Joel\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Post date:** [May 23, 2007, 12:05am UTC](https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826/2 "2007-05-23T00:05:38Z")

</div>

just tracked something down that said to try logger.warn and that  
seems to be doing the trick.

carry on 🙂

---

<div class="post-metadata">

**Author:** ![Joel\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Post date:** [May 23, 2007, 12:43am UTC](https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826/3 "2007-05-23T00:43:43Z")

</div>

Rails uses built-in Ruby Logger class and sets logging level based on  
running environment.

INFO for production and DEBUG for all other environments.

As you can see from the Ruby documentation, the order of levels is  
FATAL, ERROR, WARN, INFO, DEBUG and logger only logs messages in lower  
levels, so it doesn’t log debug messages when the level is INFO.

Look here for more info:  
[http://www.ruby-doc.org/core/classes/Logger.html](http://www.ruby-doc.org/core/classes/Logger.html)

HTH,

- H

On 5/23/07, Joel O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> thanks for the help!
> 
> - J
> 
> >

–  
Husein C.,  
CEO, CTO  
Yucca Intelligence Development

> **[قفل دیجیتال | قفل هوشمند | قفل الکترونیکی کره‌ای | یوکا](https://yuccahq.com/)**
>
> نگران قیمت بی‌ثبات هستی؟ از تخصصی‌ترین برند قفل هوشمند با اطمینان و تضمین قیمت خرید کن! معتبرترین برند کره جنوبی:قفل الکترونیکی یوکا همین الان تماس بگیرید و از تخفیف‌های شگفت‌انگیز ما استفاده کنید.

We make the web a better place!

---

<div class="post-metadata">

**Author:** ![Joel\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Post date:** [May 23, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826/4 "2007-05-23T21:38:04Z")

</div>

This is all extremely helpful information. Thank you, Husein, for the  
follow up with all the goods!

- Joel
