Forum: Ruby on Rails Fix log files

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.
E4c4a05719644c37f02dc5181de7c8c5?d=identicon&s=25 Seth Buntin (Guest)
on 2006-04-10 15:50
What is the code I include in one of my files so that my log files are
easier to read?  I am using Windows.

Thanks.
Seth
D90ef6808433e63203e15a5c2dadb0bb?d=identicon&s=25 Ben Reubenstein (Guest)
on 2006-04-10 17:50
(Received via mailing list)
Hi Seth ~

I personally never "read" raw log files.  I will sometimes use tail -f
./log/development.log to see which SQL calls I am making during
development.  You can do this with CYGWIN on windows.  I usually parse
my
logs with AWStats to "read" them.

If you are just trying to debug your code, I would recommend using <%=
debug
OBJECT %> in your view.

~ Ben
855c677aca7319a44da19fb583b9f320?d=identicon&s=25 Nicolas Cavigneaux (Guest)
on 2006-04-11 11:31
(Received via mailing list)
Le Lundi 10 Avril 2006 15:50, Seth Buntin a écrit :
> What is the code I include in one of my files so that my log files are
> easier to read?  I am using Windows.

In your config/environment.rb, you can use:
ActiveRecord::Base.colorize_logging = false

This way you'll have clear logs without color formatting.

Bye.
This topic is locked and can not be replied to.