ChangemakerStudios / serilog-sinks-mongodb

A sink for Serilog that writes events to MongoDB
Apache License 2.0
92 stars 53 forks source link

Settings for capped collection are not working #49

Closed ganeshkum25 closed 5 years ago

ganeshkum25 commented 5 years ago

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" } }