How often are a domain’s log files rotated?
By default, log files (access and error) are setup to rotate daily, keeping one compressed archive until the next rotation. The reason they are rotated daily is to reduce the amount of space they take up since log files are added to your disk space usage and large log files could cause your site to exceed its quota.