export method

Future<void> export(
  1. String path
)

Copies the log file to path.

Implementation

Future<void> export(String path) async {
  await flush();
  try {
    if (await _file.exists()) {
      await _file.copy(path);
    }
  } catch (_) {
    // Ignore copy errors.
  }
}