Skip to content

[Proposal]: Interpolated string handler method names #9046

@333fred

Description

@333fred

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions