Skip to content

Commit

Permalink
simplify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang committed Oct 6, 2023
1 parent 3084011 commit 5729ccd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/logs/getting-started-aspnetcore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@

public static partial class ApplicationLogs
{
[LoggerMessage(Level = LogLevel.Information, Message = "Starting the app...")]
[LoggerMessage(LogLevel.Information, "Starting the app...")]

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 59 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'
public static partial void StartingApp(this ILogger logger);

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

Check failure on line 60 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Partial method 'ApplicationLogs.StartingApp(ILogger)' must have an implementation part because it has accessibility modifiers.

[LoggerMessage(Level = LogLevel.Information, Message = "Food `{name}` price changed to `{price}`.")]
[LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")]

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'

Check failure on line 62 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'message' of 'LoggerMessageAttribute.LoggerMessageAttribute(int, LogLevel, string)'
public static partial void FoodPriceChanged(this ILogger logger, string name, double price);

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.

Check failure on line 63 in docs/logs/getting-started-aspnetcore/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Partial method 'ApplicationLogs.FoodPriceChanged(ILogger, string, double)' must have an implementation part because it has accessibility modifiers.
}
4 changes: 2 additions & 2 deletions docs/logs/getting-started-aspnetcore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ logging, and type-checked parameters:
```csharp
public static partial class ApplicationLogs
{
[LoggerMessage(Level = LogLevel.Information, Message = "Starting the app...")]
[LoggerMessage(LogLevel.Information, "Starting the app...")]
public static partial void StartingApp(this ILogger logger);

[LoggerMessage(Level = LogLevel.Information, Message = "Food `{name}` price changed to `{price}`.")]
[LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")]
public static partial void FoodPriceChanged(this ILogger logger, string name, double price);
}
```
Expand Down
5 changes: 2 additions & 3 deletions docs/logs/getting-started-console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
logger.FoodPriceChanged("artichoke", 9.99);

logger.FoodRecallNotice(

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'

Check failure on line 32 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

There is no argument given that corresponds to the required parameter 'logLevel' of 'ApplicationLogs.FoodRecallNotice(ILogger, LogLevel, string, string, string, string, string)'
logLevel: LogLevel.Critical,
brandName: "Contoso",
productDescription: "Salads",
productType: "Food & Beverages",
Expand All @@ -43,10 +42,10 @@

public static partial class ApplicationLogs
{
[LoggerMessage(Level = LogLevel.Information, Message = "Food `{name}` price changed to `{price}`.")]
[LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")]
public static partial void FoodPriceChanged(this ILogger logger, string name, double price);

[LoggerMessage(Message = "A `{productType}` recall notice was published for `{brandName} {productDescription}` produced by `{companyName}` ({recallReasonDescription}).")]
[LoggerMessage(LogLevel.Critical, "A `{productType}` recall notice was published for `{brandName} {productDescription}` produced by `{companyName}` ({recallReasonDescription}).")]
public static partial void FoodRecallNotice(
this ILogger logger,
LogLevel logLevel,

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)

Check failure on line 51 in docs/logs/getting-started-console/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Argument 'logLevel' is not referenced from the logging message (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1015.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/logs/getting-started-console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ logging, and type-checked parameters:
```csharp
public static partial class ApplicationLogs
{
[LoggerMessage(Level = LogLevel.Information, Message = "Food `{name}` price changed to `{price}`.")]
[LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")]
public static partial void FoodPriceChanged(this ILogger logger, string name, double price);

...
Expand Down
2 changes: 1 addition & 1 deletion docs/logs/redaction/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@

public static partial class ApplicationLogs
{
[LoggerMessage(Level = LogLevel.Information, Message = "Food `{name}` price changed to `{price}`.")]
[LoggerMessage(LogLevel.Information, "Food `{name}` price changed to `{price}`.")]
public static partial void FoodPriceChanged(this ILogger logger, string name, double price);
}

0 comments on commit 5729ccd

Please sign in to comment.