register method
Implementation
register(Map<String, dynamic> log) {
Map<String, dynamic> current = {};
DateTime now = DateTime.now();
current["timestamp"] = now.millisecondsSinceEpoch;
current["log"] = log;
history.addAll(current);
if (_cb != null) {
_cb!(current);
}
}