LogFile constructor

LogFile(
  1. String location, {
  2. required bool enable,
  3. String? singleFileSizeLimit,
  4. int? singleFileHourLimit,
})

Implementation

LogFile(this.location,
    {required bool enable,
    String? singleFileSizeLimit,
    int? singleFileHourLimit}) {
  if (singleFileSizeLimit != null) {
    final size = BinarySize.parse(singleFileSizeLimit);
    if (size != null) {
      this.singleFileSizeLimit = size;
    }
  }
  if (singleFileHourLimit != null) {
    _hours = singleFileHourLimit;
  }
  getFileId();
  this.enable = enable;
}