-
Notifications
You must be signed in to change notification settings - Fork 849
Closed
Labels
area-telemetrybugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Description
If I use a class, it has no issue. But if I change class to record, I'll get errors. See below.
Step 1: add a record class
internal record User()
{
public int Id { get; set; }
[NoDataClassification]
public string? Email { get; set; }
}
Step 2: add log method
internal static partial class Logging
{
[LoggerMessage(6001, LogLevel.Information, "Logging User: {User}")]
public static partial void LogUser(this ILogger logger, [LogProperties] User user);
}
Environment/configuration:
Metadata
Metadata
Assignees
Labels
area-telemetrybugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
