-
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
Convert this package into a pure metapackage, so that UseSerilogRequestLogging()
can be made available without any other dependencies
#266
Comments
Thanks for the note, Mike. This package was originally a metapackage with no substantial code of its own; we might consider a refactor now that there's more implementation here, but there's a usability trade-off: even the primary overloads of I'd be inclined to leave this for now, but extracting |
Relates to #127 |
This is starting to cause problems - the unnecessary dependencies are becoming outdated which can lead to version downgrade errors when building (especially when targeting linux, it seems), and the workaround is to add direct dependencies to the later versions of these implicitly-included packages from our projects. Feels very wrong, as our projects don't use these packages at all! 😄 |
@GraemeF thanks for dropping by! Still open to extracting the middleware/other implementation code from this package, to allow consumption of the bundled parts. Is anyone keen to analyze what would actually get moved/propose some package names for it to move into? |
In #127 I proposed to remove 5 packages. Just remove, without making any new meta-packages. Any who needs specific sinks may just drop in sink package into project, that's all. |
I'm not keen on dropping the dependencies here, not least because of the downstream breakage, but also because this creates one more barrier to adopting Serilog: the default .NET web SDK includes the console logger provider for MEL, there's no extra step to install it; the default .NET web SDK enables JSON config support ... etc. etc. Apart from the logging middleware in this package, everything else is already in fine-grained packages. If we extract the logging middleware to its own package, referenced from this one, then it's easy to just install Hosting, Configuration, the middleware package, and whatever other sinks you require. Let's push this one forward :-) |
UseSerilogRequestLogging()
can be made available without any other dependencies
serilog-aspnetcore/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj
Line 31 in 76f4a51
There is no code in the project that depends on the
Serilog.Sinks.File
package.This causes the resulting
Serilog.AspNetCore
NuGet package to carry along an unnecessary dependency.The text was updated successfully, but these errors were encountered: