Skip to content

[Proposal]: Interpolated string handler method names #9046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
333fred opened this issue Jan 13, 2025 · 0 comments
Open

[Proposal]: Interpolated string handler method names #9046

333fred opened this issue Jan 13, 2025 · 0 comments
Assignees
Milestone

Comments

@333fred
Copy link
Member

333fred commented Jan 13, 2025

Interpolated string handler method names

Summary

In order to solve a pain point in the creation of handler types and make them more useful in logging scenarios, we add support for interpolated string handlers to receive a new piece of information, a custom value supplied at the call site.

public void LogDebug(
    this ILogger logger,
    [InterpolatedStringHandlerArgument(nameof(logger))]
    [InterpolatedStringHandlerArgumentValue(LogLevel.Debug)]
    LogInterpolatedStringHandler message);

Design meetings

@333fred 333fred self-assigned this Jan 13, 2025
@dotnet dotnet locked and limited conversation to collaborators Jan 13, 2025
@333fred 333fred modified the milestones: Needs More Work, Working Set Jan 16, 2025
@333fred 333fred modified the milestones: Working Set, Needs More Work Mar 13, 2025
@333fred 333fred modified the milestones: Needs More Work, Working Set Apr 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant