You can use
RAILS_DEFAULT_LOGGER.log "foobar" # or Rails.logger.log "blah"
outside a controller for logging.
Share This
Notify me of followup comments via e-mail
Post a Comment