I tried to configure settings for capped Logging as below, But neither the number of records in collections are getting limited nor the size of documents in the collection.
I have hundreds of record in my log collection in the repository.
{
"Name": "MongoDBCapped",
"Args": {
"databaseUrl": "mongodb://localhost:27017/test",
"collectionName": "log",
"cappedMaxDocuments": "10",
"cappedMaxSizeMb": "1"
}
}
I tried to configure settings for capped Logging as below, But neither the number of records in collections are getting limited nor the size of documents in the collection. I have hundreds of record in my log collection in the repository. { "Name": "MongoDBCapped", "Args": { "databaseUrl": "mongodb://localhost:27017/test", "collectionName": "log", "cappedMaxDocuments": "10", "cappedMaxSizeMb": "1" } }