getLogs static method

List<String> getLogs()

Implementation

static List<String> getLogs() {
  String path = PWConfig.errorLogPath;
  Directory(path).createSync();
  return File('$path/log.txt').readAsLinesSync();
}