-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added mongodb sink #1981
added mongodb sink #1981
Conversation
Thanks. Not sure about the conflicting license though.. spdlog is MIT and yours is GPL3 |
Ok, I forgot old license template in Qt creator. I'll change it to MIT license |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License changed to MIT
can you replace to (like all other spdlog files): “// Distributed under the MIT License (http://opensource.org/licenses/MIT)” |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I changed the license comment
Thanks. It is better to inherit form base sink so that users can choose to create single or multithreaded sink. Also printing to cerr id taken care of by the exception handker on the upper layer and should be removed here. |
I changed the base class to base_sink and added factory functions. |
Thanks. Merged and added a small fix (2a09f66) |
Hello I've added custom sink for writing logs to mongodb. If I will have free time I want to make dynamic mongodb document structure based on format string pattern.
Dependencies
Usage samples
asynchronous logger
synchronous logger
Example document from mongodb