sync logs on rotation instead of by a cron job