onRecord method

  1. @override
void onRecord(
  1. NoticeRecord record
)

Called when a notice is recorded.

Implementation

@override
void onRecord(NoticeRecord record) {
  final context = writer.context();
  final string = formatter.format(record, context);
  writer.write(string);
}