Skip to content
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

Allow named connections strings #184

Open
Ol-Wood opened this issue Oct 10, 2024 · 0 comments
Open

Allow named connections strings #184

Ol-Wood opened this issue Oct 10, 2024 · 0 comments

Comments

@Ol-Wood
Copy link

Ol-Wood commented Oct 10, 2024

Describe your suggestion
It would be great if the connections string property of the the WriteTo:AzureTableStorage section of appsettings would allow a named connection string that it reads from the root connection strings section of appsettings. Some other serilog sinks already provide this functionality.

So what I mean is:

{
  "ConnectionStrings": {
    "AzureTableStorage": " <connectionString>"
  },
  "Serilog": {
    "WriteTo": [
      {
        "Name": "AzureTableStorage",
        "Args": {
          "storageTableName": "<TableName>",
          "connectionString": "AzureTableStorage" // This value maps to property in ConnectionStrings section
        }
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant