# Disable Production Log

**URL:** <https://www.ruby-forum.com/t/disable-production-log/78338>\
**Category:** Rails\
**Created:** [December 5, 2006, 2:39am UTC](https://www.ruby-forum.com/t/disable-production-log/78338 "2006-12-05T02:39:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flopezr333](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/54ee81/32.png) [@flopezr333](https://www.ruby-forum.com/u/flopezr333)\
**Post date:** [December 5, 2006, 2:39am UTC](https://www.ruby-forum.com/t/disable-production-log/78338/1 "2006-12-05T02:39:57Z")

</div>

Hi guys,

How can I disable production log? My app use ajax to submit a form  
every 3 seconds and updates the screen. I only have 30 users and I am  
having a lot of rendering effort and cpu usage in a Pentium 4 HT.  
According to the agile book, log can be a cause.

Thanks in advance.

–  
Fernando L.

---

<div class="post-metadata">

**Author:** ![flopezr333](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/54ee81/32.png) [@flopezr333](https://www.ruby-forum.com/u/flopezr333)\
**Post date:** [December 5, 2006, 3:26am UTC](https://www.ruby-forum.com/t/disable-production-log/78338/2 "2006-12-05T03:26:00Z")

</div>

On my apps in production I only log warnings and error messages. You  
might  
want to do the same thing.

Put this in your production.rb file…

# Log only warnings + errors

config.log\_level = :warn

On 12/4/06, Fernando L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Fernando L.
> 
> >

–  
seth at subimage interactive  
[http://www.subimage.com/sublog/](http://www.subimage.com/sublog/)
