private MongoDBContext CreateMongoDBContext(ILoggerOptions options) => _mongoDBContext = new MongoDBContext((MongoDBLoggerOptions)options);
public void Dispose() => _mongoDBContext = null;