shutdown method

Future<void> shutdown()

Flush remaining logs and shut down.

Implementation

Future<void> shutdown() async {
  _flushTimer?.cancel();
  _flushTimer = null;
  await _flushLogs();
}