Skip to content

Move Logging Source Generator to MS.Extensions.Logging.Abstractions #52222

Closed

Description

@eerhardt

Library authors today can use the LoggerMessage.Define APIs and log messages by only referencing Microsoft.Extensions.Logging.Abstractions.

However, in order to use the new Logging source generation feature, they now need to reference Microsoft.Extensions.Logging as well.

We should move the source generator and attribute to Microsoft.Extensions.Logging.Abstractions, so library authors don't need to change their references to use this new feature.

Activity

  1. ghost added
    untriaged
    on May 3, 2021
  2. added this to the 6.0.0 milestone on May 3, 2021
  3. removed
    untriaged
    on May 3, 2021
  4. maryamariyan commented on May 3, 2021

    @maryamariyan
    Contributor

    @eerhardt OK to work on this without discussing over API review meetings?

  5. eerhardt commented on May 4, 2021

    @eerhardt
    MemberAuthor

    If we have consensus with stakeholders, I think this could be an "email only" API review. None of the API shape would change, just which assembly it is contained in.

    I guess I would get buy-off with all the stakeholders before working on it.

  6. davidfowl commented on May 4, 2021

    @davidfowl
    Member

    +1 on this moving

  7. added a commit that references this issue on May 4, 2021
    5284668
  8. ghost added
    in-pr
    on May 4, 2021
  9. ericstj commented on May 4, 2021

    @ericstj
    Member

    Seems fine to me. Moving things is fine in previews without type-forwards. I don’t even think there is a case where folks would notice the move, since there is no scenario for runtime consumption nor design-time binary consumption of the type from it's old location.

  10. added a commit that references this issue on May 5, 2021
    d058930
  11. ghost removed
    in-pr
    on May 5, 2021
  12. ghost locked as resolved and limited conversation to collaborators on Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions