-
Notifications
You must be signed in to change notification settings - Fork 287
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
Application Insights .NET SDK does not respect LogLevel.None #2666
Comments
Known issue/feature/bug/capability! But I do not know why ilogger even sends the LogLevel.None to the providers (like ApplicationInsights!). |
Yeah, to be fair I never used this loglevel, but I'm depending on a library that uses it and I'm getting a lot of unwanted messages in AI 😟 Is this something you plan to fix at AI SDK, or shall we rather raise this to the .NET logging team? |
Since all other providers are doing this check, probably makes sense for application insights to do this as well. |
Cool. Would be possible to have any ETA about when this could be fixed and released? Is this something I cal help with PR? |
No ETA. This is not a high priority item. Happy to accept a PR if you can send one! it should be straightforward. This is a reference https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs#L70 |
Repro steps:
Create an ASP.NET Core application with Application Insights configured.
Add a log like this:
_logger.Log(LogLevel.None, "Do not show")
Actual behavior:
Expected behavior:
The text was updated successfully, but these errors were encountered: