logFiles property
Returns the paths of all existing log files (active + rotated), ordered from newest to oldest.
Implementation
List<File> get logFiles {
final files = <File>[];
final active = _activeFile;
if (active.existsSync()) files.add(active);
for (var i = 1; i < maxFileCount; i++) {
final rotated = File(_rotatedPath(i));
if (rotated.existsSync()) files.add(rotated);
}
return files;
}