Future<void> addLog(Log logItem) async { await _logRepository.save(logItem); await _sendCachedLogs(); }