shouldRotateBySize static method

bool shouldRotateBySize(
  1. int currentSize,
  2. int maxSize
)

Check if a file should be rotated based on size

Implementation

static bool shouldRotateBySize(int currentSize, int maxSize) {
  return currentSize >= maxSize;
}