write method

  1. @override
Future<void> write(
  1. LogMessage msg
)
override

This function is responsible for outputting the message

It is implemented by concrete classes extending LogWriter

Implementation

@override
Future<void> write(LogMessage msg) async {
  if (shouldLog(msg)) {
    _messages.add(msg);
  }
}