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;
  }

  final message = _formatter(record);

  print(utf8.decode(message).trim());
}