Closed novelhawk closed 2 years ago
Hi @novelhawk!
Sorry for the late reply. Loading SQL sink's connection strings and other settings from config sources is also possible for .NET Framwork. Please check out the documentation (https://github.com/serilog-mssql/serilog-sinks-mssqlserver#external-configuration-syntax) and the included samples for getting an idea how to do this.
Bug Report / Support Request Template
Hello, I'm trying to port my .NET Core project's Serilog configuration to another project that targets .NET Framework. I was wondering if it was possible to load the connection strings from the project's XML configuration (from MSSql's XML or JSON configuration).
Ideally I would like to have the connection strings where they are and refer to them with their name.
I would be willing to port the complete XML project configuration to appsettings.json but it doesn't seem possible.
[ ] .NET Core 6 [ ] .NET Core 3.1 [ ] .NET Framework 4.8 [X] .NET Framework 4.7.x [ ] .NET Framework 4.6.x [ ] .NET Framework 4.5.x OS: Windows 10