I am looking for a solution that will allow me to create a new log file for rails application everyday.
The goal is to go from standard production.log to
production.2019-06-01.log
production.2019-06-02.log
...etc
Where the latest log is has today's date.
I am aware of logrotate application but the issue is that production.log is current one, production.log.1 is supposedly yesterdays. So if you want to find something that happened on a specific day few weeks ago, you'll need to eyeball which log file it will be in.