init method
Implementation
Future init() async {
_streamController = StreamController.broadcast();
_sessionIdentity = "${DateTime.now().microsecondsSinceEpoch.toString()}${Random().nextInt(100000)}";
await _reloadFile();
var now = DateTime.now();
Future.delayed(DateTime(now.year, now.month, now.day).add(const Duration(days: 1)).difference(now), () {
_reloadFile();
});
logStream!.listen((event) async {
_insertLog("$event");
});
}