-
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
How to set ConnectionString using ILogger? #1944
Comments
If using, DI then the following should work as shown in doc example
|
There is an active PR #1643 to make this method as public. |
Thanks Raj, We may need to fork this PR and finish it ourselves. |
This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Hi I would appreciate if this change will be merged. Azure recommend to use connection string instead of Instrumentation keys. But it is impossible to do when I need to configure Logger in ASP.Net core Program.cs |
Agree. this should be prioritized for the coming release. |
We have an internal customer using ILogger, and they need to set the ConnectionString but it appears that we don't expose that in the ILogger SDK.
We have a constructor overload that would permit this, but it's currently set to private.
ApplicationInsights-dotnet/LOGGING/src/ILogger/ApplicationInsightsLoggingBuilderExtensions.cs
Lines 90 to 100 in a26a43f
I propose we set this to public to unblock this customer.
@cijothomas do you know of any workarounds?
The text was updated successfully, but these errors were encountered: