Skip to content

Add ZLoggerMessage Analyzer error for when parameter names mismatch #215

@nathanAjacobs

Description

@nathanAjacobs

There should be an analyzer for this misuse.

Message should be something like:

"Parameter names must match message format arguments."

public static partial class MyLogger
{
    [ZLoggerMessage(LogLevel.Information, "Bar: {x}")]
    public static partial void Bar(this ILogger<Foo> logger, int value);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions