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

Use merging of event properties in async target wrapper to fix empty collection issue #371

Merged
1 commit merged into from
Jun 18, 2014

Conversation

tuukkapuranen
Copy link
Contributor

The empty 'properties' collection (issue #331) was fixed by copying the properties from the original object stored in the parameters. However, the async target wrapper 'Write' is overwritten such that the merge method is never called, causing the same issue when using configuration. The solution is to call the merge operation in the overridden 'Write' method.

I ran into this issue and was able to produce a solution that seems to work for us, but we have not used NLog extensively yet, so please take a look if this fix is any good.

Thanks!

…collection issue

The empty 'properties' collection (issue NLog#331) was fixed by copying the properties from the original object stored in the parameters. However, the async target wrapper 'Write' is overwritten such that the merge method is never called, causing the same issue when using <targets async="true"> configuration. The solution is to call the merge operation in the overridden 'Write' method.
ghost pushed a commit that referenced this pull request Jun 18, 2014
Use merging of event properties in async target wrapper to fix empty collection issue
@ghost ghost merged commit 3e036a0 into NLog:master Jun 18, 2014
@ghost ghost added the bug label Jun 18, 2014
@ghost ghost added this to the 3.0.1 milestone Jun 18, 2014
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report / Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant