Best practice for writing to the log from Model

Agile Web D. 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

RAILS_DEFAULT_LOGGER.info �a message¹

This will work anyplace in your app.

On 9/3/06 11:05 PM, “Dominique P.”
[email protected]