Writes the log-String to file
log
Future<File> writeLogsToFile(String log) async { final file = await _localFile; // Write the file return file.writeAsString('$log'); }