search for: howtoconfigurelogging

Displaying 6 results from an estimated 6 matches for "howtoconfigurelogging".

2006 Apr 04
2
Default logger inside arbitrary classes
Hi, What''s the best way to get the default logger (the one used during the tests) from inside a class that doesn''t inherit any rails class? Thanks Oscar --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 06
10
I need debugging tips?
Hi all, Like most other frameworks, Ruby groups code by Model/View/Controller instead of by task, and therefore I''m having a hard time debugging a problem from the Agile Rails book where looping through @items errors out because one or more items is nil. I managed to empty the cart by placing session[:cart] = nil in find_cart() in the store_controller_rb, and the problem continued
2005 Dec 22
2
Pretty Log Output on OS X
Howdy, I am using Apple''s Terminal and Rails 1.0 on Tiger. I am tailing my log files and it seems with one of these updates things changed a little. I see all these ''ESC'' codes all over. How can I make the output prettier? I''d rather not move to iTerm, not one of my faves. Cheers.
2006 Sep 05
1
Finding what methods talk to the DB!
Hi all, I am now working on performance tuning. I am still a newbie thus I am not talking about "full blown performance tuning". What I do now is just tracking my development.log to find whether I accidentally make redundant queries because of my misunderstanding of ActiveRecord, redundant AJAX calls, or logical mistakes. The questions: 1. From what I understand the standard log_level
2006 May 21
0
Re: log4r and rails
...would ask (partially out of curiosity) is what log4r specific feature are you trying to use? While there are some neat log4r features, the built in logger provides (from my perspective) a good logging framework already probably addresses most logging needs. http://wiki.rubyonrails.com/rails/pages/HowtoConfigureLogging That said, a basic setup to use log4r in rails follows a very similar approach to using the built in logger. Install the log4r gem gem install log4r Then edit your environment.rb file to use the gem and setup the logger require "rubygems" require "log4r" #Setup Log4r Loggi...
2006 Feb 21
5
No Log
I''m running an app under Apache/FastCGI and am trying to look at any log output. However no output to any of the logs is being done by the app! I have the app set to development mode. I deleted all of the log files in the log directory and no new logs are being created (I assume that the app will create the logs as required). What''s going on here? Is there some sort of