ChangemakerStudios / serilog-sinks-mongodb

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

Creating one collection per day #43

Closed abrasat closed 2 years ago

abrasat commented 5 years ago

Would be possible to configure the serilog mongodb sink to create one collection per day, and to keep for instance the logs from the last 30 days (the older collections should be removed) ? Are there any samples available about how to implement such a feature ?

Jaben commented 3 years ago

This would be possible: a sort of "rolling" feature. I've added an up-for-grabs label to this issue if anyone wants to submit a PR.

Revazashvili commented 2 years ago

i just opened PR for this issue.

https://github.com/ChangemakerStudios/serilog-sinks-mongodb/pull/77

Jaben commented 2 years ago

PR is merged. Releasing latest.