You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common logging pattern is to put all the logging related methods in a nested class of the service that needs to log. However, the Logging Source Generator doesn't support this. When I try to do it, I get an error saying:
Severity Code Description Project File Line Suppression State
Error SYSLIB1004 Logging class cannot be in nested types Microsoft.Extensions.Diagnostics.HealthChecks C:\git\aspnetcore\src\HealthChecks\HealthChecks\src\DefaultHealthCheckService.cs 201
We should support this common coding pattern in the Logging Source Generator.
A common logging pattern is to put all the logging related methods in a nested class of the service that needs to log. However, the Logging Source Generator doesn't support this. When I try to do it, I get an error saying:
Severity Code Description Project File Line Suppression State
Error SYSLIB1004 Logging class cannot be in nested types Microsoft.Extensions.Diagnostics.HealthChecks C:\git\aspnetcore\src\HealthChecks\HealthChecks\src\DefaultHealthCheckService.cs 201
We should support this common coding pattern in the Logging Source Generator.
A common logging pattern is to put all the logging related methods in a nested class of the service that needs to log. However, the Logging Source Generator doesn't support this. When I try to do it, I get an error saying:
We should support this common coding pattern in the Logging Source Generator.
See discussion at dotnet/aspnetcore#32414 (comment)
cc @maryamariyan @davidfowl @shirhatti
The text was updated successfully, but these errors were encountered: