```ruby
Delayed::Worker.destroy_failed_jobs = false
```

Add log file for delayed job
user
```ruby
Delayed::Worker.destroy_failed_jobs = false
Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
```
assistant