logMessage method
- 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);
}