Skip to content

CreateReplaySafeLogger<T> should return ILogger<T> instead of ILogger #365

@cgillum

Description

@cgillum

Issue

Various engineering teams use ILogger<T> instead of ILogger with source generation. However, the CreateReplaySafeLogger<T> method returns an ILogger, creating an incompatibility with these practices.

Suggested fix

Change CreateReplaySafeLogger<T> to return ILogger<T>.

This is not a source-breaking change, but it is a binary-breaking change. We should make a decision about whether this meets the bar for a breaking-change release, or whether we should include this as a minor version release (with appropriate documentation) that can be released sooner.

/cc @jviau

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeThis issue can only be delivered as part of a breaking change release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions