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-log-in-rails

Yoram

On Nov 27, 8:25 am, mariek <[EMAIL PROTECTED]> wrote:
> 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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to