composer require touchdesign/logrotate-bundle
bin/console touch:logrotate:rotate /var/log/example.log [--keep=5]
bin/console touch:logrotate:purge /var/log/example.log
Can easily configured by EnvVars:
LOGROTATE_KEEP=3 # Number of log file to keep, default is 3