add logrotate to core