Skip to content

Use LibLog for Logging #130

Open
Open
@bchavez

Description

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) and Microsoft.Extensions.Logging.Abstractions (.net core). Generally, any opportunity we get to break a dependency is good.

Cons

  • It's a breaking change (hopefully not too bad).
  • We might lose some degree of explicit configurability
    (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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions