-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoggerMessage - SYSLIB1008 should have a better message #52221
Comments
Tagging subscribers to this area: @maryamariyan Issue DetailsI made the mistake of adding I got this error message:
This message didn't help me right away because I didn't want to pass an We should update this message to also include that the method is static.
|
I made the mistake of adding
static
to myLoggerMessage
method (through copy-paste mistake) and I wanted to use my instanceILogger _logger
field, so I didn't have anILogger
in the method parameters.I got this error message:
This message didn't help me right away because I didn't want to pass an
ILogger
in the arguments. So it took me a while to realize the method wasstatic
and that was the issue.We should update this message to also include that the method is static.
The text was updated successfully, but these errors were encountered: