clearLogs method

Future<void> clearLogs()

Implementation

Future<void> clearLogs() async {
  await _ensureInitialized();

  await _lock.synchronized(() async {
    await _logFile?.writeAsString('');
  });
}