[Rails] Re: What's 'logger', really

2009-04-09 Thread Tonypm
i find I cant send to logger in production mode if I am running a script/runner on a model method. Works in development mode, must be a reason for this although I cant figure it Output just seems to go nowhere Tonypm --~--~-~--~~~---~--~~ You received this

[Rails] Re: What's 'logger', really

2009-03-31 Thread Stan Kaufman
On Mar 30, 1:32 pm, Frederick Cheung frederick.che...@gmail.com wrote: You can't call it from any method. ActionController::Base, ActiveRecord::Base and a few others have accessors called logger that returns a Logger object Rails also stores a Logger object in RAILS_DEFAULT_LOGGER, so you can

[Rails] Re: What's 'logger', really

2009-03-30 Thread Frederick Cheung
On Mar 30, 9:08 pm, Steve Dogers rails-mailing-l...@andreas-s.net wrote: Hi, I don't understand how we can just call 'logger' from any method, You can't call it from any method. ActionController::Base, ActiveRecord::Base and a few others have accessors called logger that returns a Logger