Forum: Ruby on Rails Define maximum logs size ? Desactivate logs ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
19403f509ca90e8ffe072214c6cba896?d=identicon&s=25 oo00oo (Guest)
on 2006-03-02 20:00
(Received via mailing list)
I'm totaly new to logs. I don't read them and I totally don't care about
them :)

But they are growing and take BIG space.

How could I limit the size of the logs ?

Is it possible to desactivate the write of logs ?

Thanks
F16def8015a7562a285c65a14be48540?d=identicon&s=25 Mathieu Chappuis (Guest)
on 2006-03-03 11:27
(Received via mailing list)
> Is it possible to desactivate the write of logs ?

Start here :
http://rails-analyzer.rubyforge.org/classes/Syslog...

And check environment/*.rb files
19403f509ca90e8ffe072214c6cba896?d=identicon&s=25 oo00oo (Guest)
on 2006-03-03 11:58
(Received via mailing list)
Finally , I could simply write in environment.rb

config.log_level = :fatal  ( or :error )

to minimize the informations written in log.

Is it a good method ?

Witch level are you usually use in production ?
This topic is locked and can not be replied to.