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