-
Notifications
You must be signed in to change notification settings - Fork 290
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
Show that ApplicationInsightsLoggerProvider defaults to Warning only if there is no config #2610
Comments
Not sure what exactly you meant. There is no defaults by ApplicationInsightsLoggerProvider in a console app. Whatever is the configuration for the application, is applied to ApplicationInsightsLoggerProvider, just like any other provider. |
If you don't have a config, and try to logger.LogInfo, it won't log to App insights. |
Thanks for clarifying. Its already covered in the docs : https://docs.microsoft.com/en-us/azure/azure-monitor/app/worker-service , but would be nice to mention in the examples in this repo too. |
To be more specific. It is documented here: logger.LogWarning("A sample warning message. By default, logs with severity Warning or higher is captured by Application Insights"); |
It would be nice if there was a line under it |
This issue is stale because it has been open 300 days with no activity. Remove stale label or this will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. |
Could the Info be added? |
ApplicationInsights-dotnet/examples/ConsoleApp/Program.cs
Line 49 in 405fd6a
show that
logger.LogInformation("not logged");
The text was updated successfully, but these errors were encountered: