handle method

  1. @override
void handle(
  1. Record record
)
override

Handles incoming record.

Implementation

@override
void handle(Record record) {
  final filter = _filter;
  final shouldFilter = filter != null && !filter(record);
  if (shouldFilter) {
    return;
  }

  _sink.add(_formatter(record));
}