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
Recently I've been converting out sql server logging using nlog to azure data tables, using your AzureStorage extension. Everything works great when I set the connection string via text in the nlog config file, or via the appsettings. However due to security restrictions I must load the connection string from a keyvault on startup. I have modified my nlog.config like so:
and set that during my Startup.cs using the following:
LogManager.Configuration.Variables["storageConnectionString"] = Settings.StorageConnectionString;
The connection string never gets set using that method. Is there a workaround for this?
The text was updated successfully, but these errors were encountered:
Recently I've been converting out sql server logging using nlog to azure data tables, using your AzureStorage extension. Everything works great when I set the connection string via text in the nlog config file, or via the appsettings. However due to security restrictions I must load the connection string from a keyvault on startup. I have modified my nlog.config like so:
and set that during my Startup.cs using the following:
LogManager.Configuration.Variables["storageConnectionString"] = Settings.StorageConnectionString;
The connection string never gets set using that method. Is there a workaround for this?
The text was updated successfully, but these errors were encountered: