Skip to content

Remove dependency on Microsoft.Extensions.Logging #1438

@damianh

Description

@damianh

The issue

Npgsql has a dependency on Microsoft.Extensions.Logging which brings in a dependency on Microsoft.Extensions.DependencyInjection.Abstractions (who knows why...)

These dependencies may be undesirable to upstream consumers and will cause versioning problems with diamond dependencies further down line.

Instead, Npgsql should follow the dependency inversion principal and define it's own logging contract that consumers can adapt to their needs.

Further technical details

Npgsql version: 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions