clearLogs method
清理日志文件夹
Implementation
Future<bool> clearLogs() async {
try {
if(_willClearLogs) return false;
_willClearLogs = true;
final logsDoc = await LogManager.instance.documentPath();
await deleteDirectory(logsDoc, recursive: true);
await filepath(filename());
_willClearLogs = false;
return true;
} catch (e) {
rethrow;
}
}