emitLog method
Performs the actual delivery of event to the transport's destination.
Called only when event.level >= this.level. Implementations must not
throw; swallow or handle errors internally.
Implementation
@override
Future<void> emitLog(LogEvent event) async {
_buffer.add(event);
if (_buffer.length >= maxSize) {
await flush();
}
}