-
-
Notifications
You must be signed in to change notification settings - Fork 134
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 LibLog for Logging #130
Comments
A possible alternative is to just consolidate on I don't have a strong objection to LibLog, but it comes with the same baggage and compatibility challenges as any third-party dependency. With the Microsoft API, the integration code is at least external to your own library, whereas with LibLog, it's baked in. |
Hey Will, Thank you for the suggestion. It is most definitely worth considering |
FWIW, LibLog did a final release for .NET Core 3.1, then archived the project and declared it deprecated:
|
Hi Will, Thanks very much for the update. Oh dang, that's unfortunate. I'm not sure I would be happy totally going with Also, I need to check the dependency graph when pulling this thing down. |
I am honestly not sure what their versioning story is. They don't do a great job documenting each library or providing release notes. (Probably a consequence of these libraries growing organically from a component of ASP.NET Core into a general purpose public release.) The good news is the package has no dependencies. In practice, I'd expect you to be fine choosing any version and sticking with it. In fact, I'm wondering why you are asking these questions when you already use |
Delayed after-thought: instead of bumping the full framework build to |
https://github.com/damianh/LibLog
Copy LibLog.cs to the driver project. Basically,
LibLog.cs
contains some fancy reflection to find out what "logging" system is present in the execution environment.Pros
Allows us to break some hard library dependencies that are only used for logging. IE:
Common.Logging
(full framework) andMicrosoft.Extensions.Logging.Abstractions
(.net core). Generally, any opportunity we get to break a dependency is good.Cons
(need to check if this is really true: read source of LibLog and see how this might impact explicit configuration scenarios).
IIRC, Npgsql is looking to move to
LibLog
.This will be scheduled for the next major
2.4
driver release (with write hooks).💤 💤 "You don't want to... Wake, push through"
The text was updated successfully, but these errors were encountered: