Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add example showing use of source-generated logging in minimal-API templates #64537

Open
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-templates
@abhiramch018

Description

@abhiramch018

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Type of issue

Feature request / documentation enhancement

Description

Minimal API templates currently use standard ILogger logging,
but .NET 8+ supports source-generated loggers via [LoggerMessage].
Including a short sample in the templates or documentation would promote this modern, high-performance pattern.

Describe the solution you'd like

Suggested improvement

Add a section or snippet showing how to define a partial logging class with [LoggerMessage] attributes.

Demonstrate integration with minimal APIs (MapGet, MapPost, etc.).

Why this helps

Encourages developers to adopt efficient logging patterns consistent with analyzer CA1873 recommendations.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp