Check if a file should be rotated based on size
static bool shouldRotateBySize(int currentSize, int maxSize) { return currentSize >= maxSize; }