Brian McCallister on 15 Jan 2006 19:56:53 -0000 |
To answer your question about logging... On Jan 14, 2006, at 7:45 PM, Aaron Mulder wrote: Could someone consider doing a beginning talk on logging in Rails? All I know is puts, though I know there is some fancier logging framework out there. If you give this talk, you'll be safe in the knowledge that you're sparing me various commentary like "what the hell, another puts?!?" when certain other people read my code. :) Rails uses log4r, which is in the ruby standard library now. In each controller and model there is a logger defined for you which is configured in environment.rb and the environment specifiers (if you wan tto use syslog in production for example). logger.info "this is an info level log statement, woot!" will work in pretty much any controller or model =) -Brian _______________________________________________ talk mailing list talk@phillyonrails.org http://lists.phillyonrails.org/mailman/listinfo/talk
|
|