logMessage method

Future<void> logMessage(
  1. BurtLog log
)

Outputs a log to its device's respective log file.

Implementation

Future<void> logMessage(BurtLog log) async {
  if (!_isInit) return;
  final file = loggingDir / "${log.device.humanName}.log";
  await file.writeAsString("${log.format()}\n", mode: FileMode.writeOnlyAppend);
}