getAllLogs static method

Future<List<Log>> getAllLogs()

getAllLogs

This will return the list of logs stored in database

Implementation

static Future<List<Log>> getAllLogs() async {
  //check to see if user provides a valid configuration and logs are enabled
  //if not then don't do anything
  if (_isLogsConfigValid()) {
    return await _flogDao.getAllLogs();
  } else {
    throw Exception(Constants.EXCEPTION_NOT_INIT);
  }
}