-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add Serilog (logging library) and components #28
Conversation
schultzcole
commented
Apr 29, 2021
Also remove Serilog.Sinks.Console because it doesn't have a non "dev" version that supporst netstandard 2.0
@schultzcole Please, can you update this PR and add this other packages? Microsoft.Extensions.* integrations (this packages are already included in registry.json): https://www.nuget.org/packages/Serilog.Settings.Configuration/ Thanks! |
registry.json
Outdated
"Serilog": { | ||
"listed": true, | ||
"version": "2.8.0" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing ,
after each entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry about that. That should be fixed now.
@bdovaz these packages seem to be related to ASP.NET core, I'm not sure they're relevant to Unity |
@schultzcole Why do you say that? It has no dependencies other than to Serilog or Microsoft.Extensions.* packages. It has nothing to do with ASP. If you are talking about appsettings.json files, it is a pattern that can be perfectly used in Unity, we do it. |
@bdovaz fair enough. I can add them to the PR but I won't be able to test them so it might be better for someone who has that capability to make a separate PR. |
@schultzcole After making this change in the registry.json file have you tried running the server? There are missing dependencies. Is there a way that in CI you can check @xoofx this fact? Because it is easy to miss a dependency as in this case and hide the problem. But before you look at it, read on because I've discovered several things. I have made a fork to try to add the 3 packages I mentioned. Along the way I have encountered several things.
That is why in this case you should put as minimum version 2.9.0 instead of 2.8.0.
As for the dependencies that I proposed I have seen the following: Serilog.Extensions.Hosting They depend on a PR I just made of the Logging package that lifts from 2.8 to 2.9 and would make it compatible: serilog/serilog-extensions-logging#188 Serilog.Settings.Configuration Depends on a stable version 3.2.0 which is the one that starts to depend on a version >= 2.10.0 In short, to support the packages that extend Serilog that you propose, it would be necessary to make several PRs similar to the one I have made so that they can upgrade the minimum version of Serilog to at least 2.9.0. Serilog.Enrichers.Thread |
@bdovaz Ah, thanks for looking in to that. I guess this PR will have to wait on the back burner until all of these libraries drop support for serilog versions < 2.9.0. Maybe just add Serilog 2.9.0 for now, and I could make separate PRs for additional libraries as they become compatible. |
@schultzcole I've created some PR: serilog/serilog-enrichers-thread#20 Serilog.Sinks.File already has a package with >= 2.9.0 but it's a preview package, we need to wait: https://www.nuget.org/packages/Serilog.Sinks.File/5.0.0-dev-00909 As you said you can make a PR with Serilog 2.9.0 only and leave this open until we can PR the other packages. |
Any update on this? |
Hi, I've created a PR #51 with the following: Serilog There would still be some left: Serilog.Enrichers.Thread These cannot yet be added because they have a Serilog dependency lower than 2.9.0 and the dependency chain is not compatible with .NET Standard 2.0. So as you see @schultzcole, either you close your PR or we keep insisting to the author on a release of a stable version of those packages: https://www.nuget.org/packages/Serilog.Enrichers.Thread/3.2.0-dev-00752 https://www.nuget.org/packages/Serilog.Formatting.Compact/1.1.1-dev-00944 https://www.nuget.org/packages/Serilog.Sinks.File.Header/ (For this one we need a PR first to release the version to >= 2.9.0) To notify the author, there is this channel: |