FileHandler constructor

FileHandler(
  1. LogFileRotationPolicy _policy, {
  2. required Formatter formatter,
  3. required String path,
  4. FileSystem? fs,
  5. int? maxBackupsCount,
})

Implementation

FileHandler(
  this._policy, {
  required Formatter formatter,
  required String path,
  FileSystem? fs,
  int? maxBackupsCount,
})  : assert(path != ""),
      _formatter = formatter,
      _fs = fs ?? _localFs,
      _maxBackupsCount = maxBackupsCount ?? defaults.maxBackupCount,
      _isClosed = false,
      _path = _ParsedPath.fromString(path) {
  _open();
}