Skip to content
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

Parameters MaxDocuments and MaxSize in the class CreateCollectionOptions #651

Closed
YevhenStienin opened this issue Jan 29, 2016 · 2 comments
Closed
Labels

Comments

@YevhenStienin
Copy link

Parameters MaxDocuments and MaxSize in the class CreateCollectionOptions do not work. Instance of CreateCollectionOptions is transmitted through the parameters in the constructors MongoDBSink : PeriodicBatchingSink. These parameters must specify the maximum number of documents in the collection (MaxDocuments), which is written logs and the maximum size of this collecrion (MaxSize). However, these restrictions do not work out.
So I had to implement this functionality in a method EmitBatch in the class MongoBDSink.
Tell me, can I do something wrong. Or, maybe, I do not understand how these parameters should affect the operation of the logger.

@nblumhardt
Copy link
Member

Hi Eugene, I'm not using MongoDB personally so I can't comment - @serilog/owners-mongodb may have some ideas? We've just recently taken a PR fixing capped collection support so there may be a fix implied in there. If you think there's a bug involved, PRing up the fix would be very welcome. HTH!

@nblumhardt
Copy link
Member

Moved to: ChangemakerStudios/serilog-sinks-mongodb#8 (see #450)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants