RAILS_DEFAULT_LOGGER.info a message¹
This will work anyplace in your app.
On 9/3/06 11:05 PM, "Dominique Plante"
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
>
> Agile Web Development with rails shows how to write to the log using
> logger.warn("a warning"), logger.info("a message"),
etc...
>
> What is the best way of writing to the log from Model classes? I
> noticed that I can do a puts, and see things in my WEBrick console - is
> there a more elegant way?
>
> Thanks!
> Dominique
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---