-
Notifications
You must be signed in to change notification settings - Fork 209
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
Documentation: Pushing properties to logevents #212
Comments
Closed
Great suggestion, thanks 👍 |
Want me to create a PR? Do I do that against master? |
|
svrooij
added a commit
to svrooij/serilog-aspnetcore
that referenced
this issue
Oct 22, 2020
nblumhardt
pushed a commit
that referenced
this issue
Oct 26, 2020
Docs: Added pushing properties to Readme Fixed #212 Co-authored-by: Ivan Maximov <[email protected]> Co-authored-by: Stephan van Rooij <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This integration is great, it enables developers to just use the default ILogger in dotnet and configure the logging with serilog. I was however missing the following information, as found here
It would be great to have this added to the main readme of this module.
Something like:
Pushing properties to the logger
When using the
ILogger
from Microsoft.Extensions.Logging you cannot push properties like you would with the ILogger from Serilog. If you still want to push properties you can do with the following code:The above code results in the same as if using the regular serilog ILogger with this code
The text was updated successfully, but these errors were encountered: