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

Issue with adding properties to logging with LogContext.Pushproperty and .Net6 #74

Open
duncan-bradley opened this issue Dec 17, 2021 · 1 comment

Comments

@duncan-bradley
Copy link

I've been using middleware to add logging context to Graylog using LogContext.PushProperty("name", value) in .net 5 without issue.
I've upgraded to .Net6, and now it does not work any more. It still works with file & console loggers, just not with this one.

Is this an issue anyone else has encountered?

whir1 pushed a commit to whir1/serilog-sinks-graylog that referenced this issue Jun 16, 2023
whir1 pushed a commit to whir1/serilog-sinks-graylog that referenced this issue Jun 16, 2023
@whir1
Copy link
Contributor

whir1 commented Jun 16, 2023

Hmm probably you do something wrong. In our systems it just works. You can view my example

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

No branches or pull requests

2 participants