setlog use global and add logrotate