logFile property

FutureOr<File> get logFile

Implementation

static FutureOr<File> get logFile async {
  final path = join(Directory(Directory.current.path + '\\logs\\').path +
      '${dt.year}-${dt.month}-${dt.day}.log');
  final _logFile = File(path);

  if (!await File(path).exists()) {
    await Directory(logFolder.path).create();
  }

  return _logFile;
}