-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Multi thread and async logging is start very late and missing same logs #40
Comments
Try changing from this: <target name="mongoTest" xsi:type="AsyncWrapper"> To include overflowAction (Default is Discard): <target name="mongoTest" xsi:type="AsyncWrapper" overflowAction="Grow"> Maybe missing loglines is because you have configured NLog.Mongo/src/NLog.Mongo/MongoTarget.cs Lines 413 to 422 in ef7c483
Looks like #25 also complains about startup delay. Have created #41 for using NLog InternalLogger for performance measurements when connecting. Maybe you can try this pre-release-nuget-package and report the output from NLog InternalLogger (At Debug-Level): https://ci.appveyor.com/project/LoreSoft/nlog-mongo/builds/33782375/artifacts |
Can you attach the output from NLog InternalLogger?
|
I attach all file from last run. |
You are not using the pre-release build ver. 4.6.0.97 but still using ver. 4.6.0.86
Can you try and perform the test with the pre-release build? (from link above)
Btw curious what is going on in your test application, since it is constantly triggering "Hide assemblies for callsite" (unrelated noise to the MongoDb issue)
|
Looks like the pre-release-build has improved the performance. Looked at your test-application. And it seems the The same 100 NLog-LoggingProvider performs implicit Flush on thread-exit (when disposing DI-container), thus also causing the frequent logging of |
@iozcelik There is now an updated nuget-package, that should match the pre-release: |
Thanks I see, however my main aim is testing nlog mongo and I think I will use in my service. |
I change a worker service log target to MongoDB from file. However, I observe some log lines are missing. Also, writing logs on collection start about a few seconds later. My nlog.config:
And I use:
The text was updated successfully, but these errors were encountered: