flushLogs method

Future<void> flushLogs()

Forces the SDK's logger pipeline to flush. Tests that emit logs synchronously usually don't need this, but it's safe to call.

Implementation

Future<void> flushLogs() async {
  await OTel.loggerProvider().forceFlush();
}