'Is it possible to save log of Ruby on Rails delayed job log in database, instead of in delayed_job.log file?

Currently the application that I'm working on is using Ruby on Rails. The application use delayed_job.log file to log the delayed job activity. However, the application is hosted in Openshift environment, using pod, and if the pod is deleted, and if a new pod is created, the application will make a new delayed_job.log file. One of the proposed solution from an engineer in the company is to save the log in a table in a database. How can I do that? The goal is to save the information that written in delayed_job.log file to a table in database, instead of delayed_job.log file. Any help is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source