addLog function
Implementation
@pragma('vm:entry-point')
Future<void> addLog(MethodChannel channel, String event) async {
if (kReleaseMode) return;
var fullEvent = "${DateTime.now()}: $event";
print(fullEvent);
await channel.invokeMethod<dynamic>("log", {"event": event});
}