how to make default rails logger accessible in my custom modules, because as I see now its available only for ActiveRecord and some other Rails modules.
on 2008-11-27 18:35
on 2008-11-27 18:55
not sure if that works, but in many cases where logger.info doesn't work (like in rspec specs) you can use: RAILS_DEFAULT_LOGGER.info "my text"
on 2008-11-27 18:56
I just dealt with the same problem: from http://mikenaberezny.com/category/ruby/#rails-logger: "From outside a controller or model, you can pass the logger instance or access it with the constant RAILS_DEFAULT_LOGGER. " also see: http://www.boowebb.com/2008/01/09/writing-to-the-l... Yoram
on 2008-11-28 11:35
thanks a lot guys