You can use
RAILS_DEFAULT_LOGGER.log "foobar" # or Rails.logger.log "blah"
outside a controller for logging.
Share This