public void AddLog(MongoLog newMongoLog) { try { _mongoCollection.InsertOne(newMongoLog.ToBsonDocument()); } catch (Exception ex) { throw new Exception($"Adding log to mongdb was not successful, Exception generated: {ex}"); } }