Cloud Stack Ninja

I'm using Nlog(4.7.5), Nlog.mongo(4.6.0.118) and mongoDB.Driver(2.11.3). when logging with mongodb I need to create collection like this "log-2020-10-18". so the 18th date logs are store in this collection. The next day or etc. logs will store in "log-${shortdate}" collection. everyday the logs store in the format of collection name. in short I want to store logs daywise in mongodb.so it will easy to see day to day logs. can I create collection at runtime(I mean in nlog.config file) so is that possible to do that? how?



Read more here: https://stackoverflow.com/questions/64410247/nlog-mongodb-create-collection

Content Attribution

This content was originally published by Bhavin Varsur at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: