logData method

Future<void> logData(
  1. Message message
)

Outputs log data to the correct file based on message

Implementation

Future<void> logData(Message message) async {
  batchedLogs[message.messageName] ??= [];
  batchedLogs[message.messageName]!.add(message.wrap());
}