Phobetor / rabbitmq-supervisor-bundle

Symfony bundle to automatically create and update supervisor configurations for RabbitMQ consumer daemons
MIT License
104 stars 42 forks source link

How can i Implement logrorate? #33

Closed varnitsaini closed 6 years ago

varnitsaini commented 6 years ago

For the logs that are generated how can i log rotate, limiting the rotated files by specific amount(eg maximum 5 files) and size for each file?

Phobetor commented 6 years ago

Hi @varnitsaini

in general you can use logrotate to achieve this. This has the advantage that you don't need to change anything in your supervisord configuration. You just configure logrotate to handle the log file.

supervisord also has an option to rotate the log files it creates. Maybe you can set this option in a system-wide configuration. This bundle has no configuration for this at the moment.