maxRotateCount property

int maxRotateCount

The maximum number of rotated log files to keep.

The default is 1 which means one backup for a total of 2 log files.

Implementation

int get maxRotateCount => _maxRotateCount;
void maxRotateCount=(int maxRotateCount)

Implementation

set maxRotateCount(int maxRotateCount) {
  if (maxRotateCount < 0) {
    throw RangeError.range(maxRotateCount, 0, null, 'maxRotateCount');
  }
  _maxRotateCount = maxRotateCount;
}