i'm working on an app that generate a lot of logs , I want to create for every hour a new log file , Symfony supports files names only by days
Another option is to have Monolog rotate the files for you by using the rotating_file handler. This handler creates a new log file every day and can also remove old files automatically
Official Documentation https://symfony.com/doc/current/logging.html#how-to-rotate-your-log-files.
the User must have the possibility to delete logs , so the optimal solution for me is to delete the last log files(only the last hour not all the last day)
- Is it an optimal solution? or there is other solutions?
- Is it possible to configure in Symfony logs files by hours instead of days?