FileHandler constructor
FileHandler(
- LogFileRotationPolicy _policy, {
- required Formatter formatter,
- required String path,
- FileSystem? fs,
- 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();
}