Rotate log files based on size