NLog.Mongo | MongoDB Target for NLog
kandi X-RAY | NLog.Mongo Summary
kandi X-RAY | NLog.Mongo Summary
Writes NLog messages to MongoDB.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NLog.Mongo
NLog.Mongo Key Features
NLog.Mongo Examples and Code Snippets
Community Discussions
Trending Discussions on NLog.Mongo
QUESTION
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?
here is the mongodb target
...ANSWER
Answered 2020-Oct-27 at 06:31Have you tried this (Notice the use of xsi:type="Mongo"
):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NLog.Mongo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page