Logging in Rails outside a controller
25-Aug-09You can use RAILS_DEFAULT_LOGGER.log "foobar" # or Rails.logger.log "blah"RAILS_DEFAULT_LOGGER.log "foobar" # or Rails.logger.log "blah" outside a controller for logging.
You can use RAILS_DEFAULT_LOGGER.log "foobar" # or Rails.logger.log "blah"RAILS_DEFAULT_LOGGER.log "foobar" # or Rails.logger.log "blah" outside a controller for logging.